0
点赞
收藏
分享

微信扫一扫

oracle 从A复制部分数据到B还不重复


insert into tableB 
(id,name)
select id,name
from tableA
where not exists (select * from tableB
where tableB .id=tableA.id)

 

参数中有单引号怎么处理? 传两个单引号,就会跳过识别   ''

举报

相关推荐

0 条评论