日期:2014-05-18  浏览次数:20516 次

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

------解决方案--------------------
try:
select * from table2 Except select * from table1