I am trying to change the visibility of all SIMPLE products only through SQL.
This is how I select all visibility attribute values:
SELECT * FROM `catalog_product_entity_int` WHERE attribute_id = 102
Table
catalog_product_entity_int has an entity_id column, which is the identifier of the product object, and value , which should be changed to 1 for all simple products.
This is how I choose all simple products:
SELECT * FROM `catalog_product_entity` WHERE `type_id`= 'simple'
What I cannot do is write a query that updates the value catalog_product_entity_int column for all simple products.
source share