Apache Ignite SQL支持MERGE语句。此支持是否扩展到MERGE WHEN(例如,在H2中)?例如
MERGE INTO account (client_id, tran_ccy, last_tran_dt)
(SELECT DISTINCT client_id, tran_ccy, Max(tran_dt)
FROM transaction
GROUP BY client_id, tran_ccy)
WHEN MATCHED THEN
UPDATE SET last_tran_dt = tran_dt
WHEN NOT MATCHED THEN
INSERT (client_id, tran_ccy, last_tran_dt)
VALUES (client_id, tran_ccy, tran_dt)
答案 0 :(得分:1)
据我所知,Ignite仅支持MERGE
中的简单H2
,而没有USING
语句。
这是简单格式http://www.h2database.com/html/commands.html#merge的语法。 https://apacheignite-sql.readme.io/docs/merge也在此进行了描述。