版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/spt_dream/article/details/85244913
insert into tableB
(id,name)
select id,name
from tableA
where not exists (select * from tableB
where tableB .id=tableA.id)
参数中有单引号怎么处理? 传两个单引号,就会跳过识别 ''