Oracle插入if not exists语句
发布时间:2021-05-22 17:43:44 所属栏目:站长百科 来源:网络整理
导读:insert into OPT (email,campaign_id) values('mom@cox.net',100)where not exists( select * from OPT where (email ="mom@cox.net" and campaign_id =100)) ; Error report: SQL Error: ORA-00933: SQL command not properly ended 00933. 00000 – “SQL
insert into OPT (email,campaign_id) values('mom@cox.net',100) where not exists( select * from OPT where (email ="mom@cox.net" and campaign_id =100)) ;
如何在Oracle中不存在新行? insert into OPT (email,campaign_id) select 'mom@cox.net',100 from dual where not exists(select * from OPT where (email ="mom@cox.net" and campaign_id =100)); (编辑:ASP站长) 【免责声明】本站内容转载自互联网,其相关言论仅代表作者个人观点绝非权威,不代表本站立场。如您发现内容存在版权问题,请提交相关链接至邮箱:bqsm@foxmail.com,我们将及时予以处理。 |
相关内容
未处理完善
-
无相关信息
最新更新