ODBC Driver for Smaregi

Build 23.0.8839

ProductStores

商品情報:商品取扱店舗

Select

本製品 は Smaregi API を使用して、WHERE 句条件と選択されたカラムを処理します。LIKE(date およびdateTime データ型のカラムの場合)およびIN 演算子は、クライアント側で処理されます。 =、!=、<>、>、<、>=、<=、AND、LIKE、ORDER BY 演算子は、サーバー側で処理されます。 例えば、次のクエリはサーバー側で処理されます。

SELECT * FROM ProductStores  WHERE AssignDivision > 0

Insert

ProductStore を追加するには、すべてのフィールドを指定します。

INSERT INTO ProductStores (ProductId, StoreId, AssignDivision) VALUES (45345, 1, 1)

NOTE:レコードがすでに存在する場合、挿入は成功せず、ドライバーは影響を受けた行を0 行返します。

Upsert

ProductStore を追加 / 更新するには、すべてのフィールドを指定します。

UPSERT INTO ProductStores (ProductId, StoreId, AssignDivision) VALUES (45345, 1, 1)

Bulk Upsert

複数のProductStore を追加 / 更新するには、すべてのフィールドを指定します。

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

スマレジはAssignDivision カラムのUPDATE を許容します。

UPDATE ProductStores SET AssignDivision = 0 WHERE ProductId = 84 AND StoreId = 2

Delete

削除はこのテーブルではサポートされていません。

Columns

Name Type ReadOnly References Description
ProductId [KEY] Long False

Products.ProductId

商品ID (PK) : 数字15桁以内。商品IDは必ず設定してください。

StoreId [KEY] Integer False

Stores.StoreId

店舗ID (PK) : 数字9桁以内。

AssignDivision Integer False

取扱区分 : 0:販売する/1:販売しない

Copyright (c) 2024 CData Software, Inc. - All rights reserved.
Build 23.0.8839