我有一个查询:
update (select tmp."table1" as tmpid,
del."table1" as delid
from "table1_TMP" tmp ,
"table1_DEL" del
where del."table2" = tmp."table2" and
del."REFSEQNO" = tmp."REFSEQNO")
set tmpid = delid;
此查询在 oracle 中运行没有任何问题。
如何修改此查询以在 Postgresql 上运行?