您当前的位置: 首页 > 

衣舞晨风

暂无认证

  • 2浏览

    0关注

    1156博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

要求从表A查数据插入到表B中,并且要求如果表A中已存在的数据,就不要重复插入

衣舞晨风 发布时间:2014-01-08 09:41:22 ,浏览量:2

  insert into A select * from B where not exists (select 1 from A where A.ID=B.ID)

  insert when (not exists (select 1 from 表名 where 检验重复的条件)) then into 表名 values(相应的值)select 1 from dual

关注
打赏
1647422595
查看更多评论
立即登录/注册

微信扫码登录

0.0471s