merge into my_table mt
using (SELECT [字段A] AS A from dual) t2
on (mt.A = t2.A)
when matched then
update set mt.B= [字段B]
when not matched then
INSERT (A,B)
VALUES([字段A],[字段B])spa
多用於存儲過程table