Magento 2 – Which Database Table Stores the Attribute Position?

attributesdatabasemagento-2.2.5position;

I need to write my own MySQL query, where I need to use the attribute Position in the query. But I can not see which table attributes Position stored in. In my *eav_attribute* table, the attribute Position has attribute_id 56. I have tried to look at the table catalog_product_entity_int, but no attribute_id equals 56. I wonder which table else could contain the product Position value?

And the position attribute I'm talking about is as in this screenshot.

enter image description here

Best Answer

You can find the positions of category products in table catalog_category_product

You can also see more fields like category_id and product_id as well which means which product is assign with which category with position.

Related Topic