insert into table2 select * from table1 where checksum(*) not in(select checksum(*) from table2)
解决方案 »
- 格林威治时间转换成北京时间
- 江湖救急!!
- 一票据系统在sql上安装及运行时出现的问题求解!
- sql2000如何更改默认的local本地注册名
- 求助:请问这条sql语句应该怎样写?
- 邹捷书中6.1.3节有句SQL语句有错误,请大家来看看!
- "Select ID from AA where ID = @parmID" 当parmID等于何值时,该语句等效于"Select ID from AA "
- 程序中如何检测正在运行的SQL Server服务器?
- 关于SQL server7.0和sql SERVer2000装在同一台机器上的问题,知道的,请帮忙
- 谁能给我关于库存软件的设计方案?
- 存储过程中SELECT全部数据
- 存储过程能实现EXCEL里面的ERF函数的功能吗?
select * from tb
where tb.id not in(select id from ta)
insert into a select * from b where not exists(select 1 from a where a.id=b.id)
select id from tb t
where not exists(
select * from ta where id=t.id)
select id from tb t
where not exists(
select * from ta where 條件1 and 條件2 and 條件三)