AI Reports

Guides › Database reference › Products and attributes

Magento 2 catalog_product_entity table

One row per product (per version on Adobe Commerce). It has only a few fixed columns; names, prices and everything else are in attribute value tables.

Key columns

ColumnWhat it means
entity_idThe product ID shown in the admin. Order lines, categories and stock link to it.
skuThe product's SKU.
type_idsimple, configurable, bundle, grouped, virtual, downloadable (and giftcard on Adobe Commerce).
attribute_set_idThe attribute set it uses.
created_at / updated_atWhen it was created and last saved.

Good to know

Example: Number of products per type

Magento Open Source

SELECT type_id, COUNT(*) AS products
FROM catalog_product_entity
GROUP BY type_id
ORDER BY products DESC;

Adobe Commerce

SELECT type_id, COUNT(*) AS products
FROM catalog_product_entity e
WHERE e.created_in <= UNIX_TIMESTAMP() AND e.updated_in > UNIX_TIMESTAMP()   -- current version only
GROUP BY type_id
ORDER BY products DESC;

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 11 columns here instead of 8. The extra ones come from these Commerce features:

Foreign keys

All 8 columns (Magento Open Source)

Show all columns
ColumnTypeCan be emptyMagento's description
entity_idint(10) unsignedEntity ID
attribute_set_idsmallint(5) unsignedAttribute Set ID
type_idvarchar(32)Type ID
skuvarchar(64)SKU
has_optionssmallint(6)Has Options
required_optionssmallint(5) unsignedRequired Options
created_attimestampCreation Time
updated_attimestampUpdate Time

Related tables

Gaurav Harsh

Gaurav Harsh is a Magento developer who works on large Adobe Commerce stores and builds AI Reports, a Magento extension for asking your store's data questions in plain English. LinkedIn