ProductAttributes
Retrieve product attributes.
Table Specific Information
Select
WooCommerce allows only a small subset of columns to be used in the WHERE clause of a SELECT query.
These columns support only the = comparison, unless stated otherwise. The available column for this
table is: ProductId. All other columns are processed client side. If the 'ProductId' filter is not
specified, the 本製品 will fetch a list of all the products and perform a request for each product in the list.
SELECT * FROM ProductAttributes WHERE ProductId = 4
Columns
| Name | Type | References | Description |
| Id [KEY] | Long | Attribute ID. | |
| Name | String | Attribute name. | |
| Slug | String | An alphanumeric identifier for the resource unique to its type. | |
| Position | Integer | Position of the product attribute. | |
| Variation | Boolean | If there's variation of the attribute available. | |
| Visible | Boolean | If the attribute is visible. | |
| OptionsAggregate | String | The array of options for the attribute. | |
| ProductId [KEY] | Long |
Products.Id | Id of the product. |
Pseudo-Columns
SELECT ステートメントのWHERE 句では、疑似カラムフィールドを使用して、データソースから返されるタプルを詳細に制御することができます。
| Name | Type | Description | |
| ReferenceNumber | String | This column will be used in Bulk operations to get specific values from the Temp tables. |