Tableau Connector for Smaregi

Build 26.0.9770

ProductInventoryReservations

Returns a list of product inventory allocations, including the allocated product and quantity for each product.



テーブル固有の情報

SELECT

connector は Smaregi API を使用してWHERE 句条件を処理します。すべてのカラムは=、!=、>、<、>=、<= 演算子によるサーバー側フィルタリングをサポートし、文字列型のカラムはLIKE もサポートします。IN 演算子、およびdate/datetime 型のカラムに対するLIKE 演算子は、クライアント側で処理されます。

例えば、次のクエリはサーバー側で処理されます:

SELECT ReservationAmount FROM ProductInventoryReservations

SELECT * FROM ProductInventoryReservations WHERE ReservationProductId <= 1005

INSERT

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

INSERT INTO ProductInventoryReservations (ProductId, ReservationProductId, ReservationAmount) VALUES (1005, 4, 5)

Note: 同じキーを持つレコードが既に存在する場合、挿入は失敗し、ドライバーは影響を受けた行数として0 を返します。

UPSERT

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

UPSERT INTO ProductInventoryReservations (ProductId, ReservationProductId, ReservationAmount) VALUES (1005, 4, 5)

Bulk UPSERT

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

INSERT INTO ProductInventoryReservations#TEMP (ProductId, ReservationProductId, ReservationAmount) VALUES (7, 4, 5)
INSERT INTO ProductInventoryReservations#TEMP (ProductId, ReservationProductId, ReservationAmount) VALUES (9, 4, 5)
UPSERT INTO ProductInventoryReservations (ProductId, ReservationProductId, ReservationAmount) SELECT ProductId, ReservationProductId, ReservationAmount FROM ProductInventoryReservations#TEMP

UPDATE

Smaregi はReservationAmount カラムの更新を許可します。

UPDATE ProductInventoryReservations SET ReservationAmount = 2 WHERE ProductId = 1005 AND ReservationProductId = 15

DELETE

ProductInventoryReservations を削除するには、ProductId およびReservationProductId を指定します。

DELETE FROM ProductInventoryReservations WHERE ProductId = 1005 AND ReservationProductId = 15

Bulk DELETE


INSERT INTO ProductInventoryReservations#TEMP (ProductId, ReservationProductId) VALUES (9, 4)
INSERT INTO ProductInventoryReservations#TEMP (ProductId, ReservationProductId) VALUES (4, 4)
DELETE FROM ProductInventoryReservations WHERE EXISTS SELECT ProductId, ReservationProductId FROM ProductInventoryReservations#TEMP

Columns

Name Type ReadOnly References Description
ProductId [KEY] Long False

Products.ProductId

ReservationProductId [KEY] Long False

ReservationAmount Integer False

Copyright (c) 2026 CData Software, Inc. - All rights reserved.
Build 26.0.9770