insert into ATMASTER_BK
select a.* from ATMASTER a where
not exists (select 1 from ATMASTER_BK b
where
b.Card_ID_number = a.Card_ID_number
and
b.Date = a.Date
and
b.Time_HHMM = a.Time_HHMM)
select a.* from ATMASTER a where
not exists (select 1 from ATMASTER_BK b
where
b.Card_ID_number = a.Card_ID_number
and
b.Date = a.Date
and
b.Time_HHMM = a.Time_HHMM)
解决方案 »
- 请教一下关于sqlserver的一些sql语句
- 在SQL上连接ORCAL数据库正常,查询数据时报错
- 请教!盗版sql sever 2000 有多少客户端用户访问许可?
- 从表中取得最近2次采购价格的语句
- ◎◎将Int型字段做主键OR将Varchar型字段做主键,哪种方式进行数据检索较快?
- Win Server2003下卸载SQL Server2005重新安装上之后无法连接instance
- 如何查出某个时间点之后的记录?
- 发表新话题
- 求SUM在求SUM的问题,而且要在同一个表中显示~~~~求救!!!
- 毕业设计瓶颈!!!拜托
- 大伙帮帮忙吧!如果某个页面的响应时间长一些,那么这个页面里的写操作将会同时写入多条,时间相差无几。。。。。。。怎么办
- case 问题!! 急
select a.* from ATMASTER a where CardID
not in (select CardID from ATMASTER_BK b
where
b.Card_ID_number = a.Card_ID_number
and
b.Date = a.Date
and
b.Time_HHMM = a.Time_HHMM)