把B表中不存在A表中的信息插入到B表中的sql语句

来源:互联网 发布:淘宝门头图片素材 编辑:程序博客网 时间:2024/05/17 03:49
insert into B(B.a,B.b,B.c) select 11,A.a,A.b from A where A.a not in(select B.a from B);
原创粉丝点击