Oracle 语法 存在则更新否则插入新数据
发布时间:2020-12-12 16:00:27 所属栏目:百科 来源:网络整理
导读: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]) 多用于存储过程
merge into my_table mt 多用于存储过程 (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |