ProductStores
Returns a list of store-specific product settings.
テーブル固有の情報
SELECT
connector は Smaregi API を使用してWHERE 句条件を処理します。すべてのカラムは=、!=、>、<、>=、<= 演算子によるサーバー側フィルタリングをサポートし、文字列型のカラムはLIKE もサポートします。IN 演算子、およびdate/datetime 型のカラムに対するLIKE 演算子は、クライアント側で処理されます。
例えば、次のクエリはサーバー側で処理されます:
SELECT * FROM ProductStores WHERE AssignDivision > 0
INSERT
ProductStores を追加するには、すべてのフィールドを指定します。
INSERT INTO ProductStores (ProductId, StoreId, AssignDivision) VALUES (45345, 1, 1)
Note: 同じキーを持つレコードが既に存在する場合、挿入は失敗し、ドライバーは影響を受けた行数として0 を返します。
UPSERT
ProductStores を追加または更新するには、すべてのフィールドを指定します。
UPSERT INTO ProductStores (ProductId, StoreId, AssignDivision) VALUES (45345, 1, 1)
Bulk UPSERT
ProductStores を追加または更新するには、すべてのフィールドを指定します。
INSERT INTO ProductStores#TEMP (ProductId, StoreId, AssignDivision) VALUES (47, 1, 1)
INSERT INTO ProductStores#TEMP (ProductId, StoreId, AssignDivision) VALUES (48, 1, 1)
UPSERT INTO ProductStores (ProductId, StoreId, AssignDivision) SELECT ProductId, StoreId, AssignDivision FROM ProductStores#TEMP
UPDATE
Smaregi はAssignDivision カラムの更新を許可します。
UPDATE ProductStores SET AssignDivision = 0 WHERE ProductId = 84 AND StoreId = 2
DELETE
このテーブルでは、DELETE はサポートされていません。
Columns
| Name | Type | ReadOnly | References | Description |
| ProductId [KEY] | Long | False |
Products.ProductId | |
| StoreId [KEY] | Integer | False |
Stores.StoreId | |
| AssignDivision | Integer | False |