读书人

在Sql Server 2005中怎么比较两个结

发布时间: 2012-01-26 19:40:46 作者: rapoo

在Sql Server 2005中,如何比较两个结构相同的表的差异?
以前在sql2000中,我用"select * from table2 where checksum(*) not in (select checksum(*) from table1)"就可以了
但现在升级到2005后,发现运行这个查询后就一直出不来结果,请问是什么原因啊?

[解决办法]
try:
select * from table2 Except select * from table1

读书人网 >SQL Server

热点推荐