首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 数据库 > SQL Server >

在Sql Server 2005中,怎么比较两个结构相同的表的差异

2012-01-26 
在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

热点排行