Guides › Database reference › Products and attributes
Magento 2 catalog_product_entity_varchar table
Short text product values (up to 255 characters): name, URL key, image paths, meta title and other text attributes. One row per product, attribute and store view.
Key columns
| Column | What it means |
|---|---|
attribute_id | Which attribute, linking to eav_attribute. |
store_id | 0 = default; other store views override it. |
entity_id (Open Source) / row_id (Adobe Commerce) | The product, or on Adobe Commerce the product version. |
value | The text value. Images are stored as paths such as /m/b/mb01-blue-0.jpg; no_selection means the image was removed. |
Good to know
- Long texts such as the description are in
catalog_product_entity_text.
Example: Products whose name is different in a store view
Magento Open Source
SELECT e.sku, s.code AS store_view, d.value AS default_name, v.value AS store_view_name
FROM catalog_product_entity e
JOIN eav_attribute a ON a.attribute_code = 'name'
JOIN eav_entity_type t ON t.entity_type_id = a.entity_type_id AND t.entity_type_code = 'catalog_product'
JOIN catalog_product_entity_varchar d ON d.entity_id = e.entity_id AND d.attribute_id = a.attribute_id AND d.store_id = 0
JOIN catalog_product_entity_varchar v ON v.entity_id = e.entity_id AND v.attribute_id = a.attribute_id AND v.store_id <> 0
JOIN store s ON s.store_id = v.store_id
WHERE v.value <> d.value
ORDER BY e.sku, s.code;
Adobe Commerce
SELECT e.sku, s.code AS store_view, d.value AS default_name, v.value AS store_view_name
FROM catalog_product_entity e
JOIN eav_attribute a ON a.attribute_code = 'name'
JOIN eav_entity_type t ON t.entity_type_id = a.entity_type_id AND t.entity_type_code = 'catalog_product'
JOIN catalog_product_entity_varchar d ON d.row_id = e.row_id AND d.attribute_id = a.attribute_id AND d.store_id = 0
JOIN catalog_product_entity_varchar v ON v.row_id = e.row_id AND v.attribute_id = a.attribute_id AND v.store_id <> 0
JOIN store s ON s.store_id = v.store_id
WHERE v.value <> d.value
AND e.created_in <= UNIX_TIMESTAMP() AND e.updated_in > UNIX_TIMESTAMP()
ORDER BY e.sku, s.code;
Tested on Magento Open Source and Adobe Commerce 2.4.8. Read-only. If your tables have a prefix, add it to each table name.
Extra columns on Adobe Commerce
Adobe Commerce has 5 columns here instead of 5. The extra ones come from these Commerce features:
- Catalog Staging:
row_id
On Adobe Commerce, entity_id is replaced by row_id, which points at a product version (catalog_product_entity.row_id).
Foreign keys
attribute_id→ eav_attribute.attribute_identity_id→ catalog_product_entity.entity_idstore_id→store.store_idrow_id→ catalog_product_entity.row_idAdobe Commerce
All 5 columns (Magento Open Source)
Show all columns
| Column | Type | Can be empty | Magento's description |
|---|---|---|---|
value_id | int(11) | Value ID | |
attribute_id | smallint(5) unsigned | Attribute ID | |
store_id | smallint(5) unsigned | Store ID | |
entity_id | int(10) unsigned | Entity ID | |
value | varchar(255) | yes | Value |