我試圖從Postgres的文檔重現此查詢:Clojure Korma可以在Postgres中生成WITH - RETURNING查詢嗎?
WITH moved_rows AS (
DELETE FROM products
WHERE
"date" >= '2010-10-01' AND
"date" < '2010-11-01'
RETURNING *
)
INSERT INTO products_log
SELECT * FROM moved_rows;
科爾馬能真正做到這一點(除了剛纔寫作課程原始SQL)?我在文檔中沒有看到它的提及。
謝謝...