这句代码有错误吗,还是别的原因?
string MyInsert = "insert into QQ1 select name from QQ2 not in ( select name from QQ1)";
报错:"关键字 'not' 附近有语法错误。"
这句代码有错误吗,还是别的原因?
------解决方案--------------------
insert into QQ1 select name from (select name from QQ2 a where not exists (select name from QQ1 b where b.name = a.name))N
------解决方案--------------------
不好意思多写了个 not in