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