insert b
select * from a where not exists(select 1 from b where 主键=a.主键)
select * from a where not exists(select 1 from b where 主键=a.主键)
解决方案 »
- 存储过程 动态传表名
- 将我的客户端加入新的域后,我本机的sql server 2005不能连接了,如何解决?
- 返回记录集的存储过程里只能有一个select么?
- 10个Q币求一个sql2000数据库的存储过程
- 求一个像数据库录入大量命名无规则图片文件的方法
- 求推荐sqlserver的书籍,主要是管理方面的
- 表连结查询时,clustered index seek 变成clustered index scan了
- 怎样让结果集按照一定的顺序排列(不是升序,也不是降序)
- 救我!用ASP访问数据库,不用odbc 而是直接联接,
- 我在sql中建立了全文检索,为什么不好使?
- sql 查询字段内容显示问题
- 大家来帮忙,看看啊!!
select * from A where 主键 not in (select 主键 from b)