请教关于表B的数据录入表A的SQL问题. insert into B select * from a left join B on a.id=b.id where b.id is null 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 insert into B表select a.* from A表 a left join B表 b on a.编码=b.编码where b.编码 is null 或:insert into B表select * from A表 where 编码 not in(select 编码 from B表) insert into a select * from b where 編碼 not in ( select 編碼 from a ) insert into B表select * from A表 where 编码 not in(select 编码 from B表) 取出相差月数,比如2006年2月1日,到2007年1月31日相差多少月 sql 如何对返回为空值指定值 求救,sqlserver2000 隔断时间就自动停止服务,望高手指点下 请教SQL远程连接问题 如何减少时间(秒)? sql小问题 SQL排序问题。。。 有没有方法禁止显示master数据库 about soundex? 速度很慢,求高手解决! SQL SERVER 的应用程序 角色怎么用? 求救!! 存储过程里访问远程服务器的问题
select a.* from A表 a left join B表 b on a.编码=b.编码
where b.编码 is null
select * from A表 where 编码 not in(select 编码 from B表)
select * from b where 編碼 not in ( select 編碼 from a )
select * from A表 where 编码 not in(select 编码 from B表)