--查询两个不同库的不同字段数
select count(*) 不同字段数
from (select name from 数据库1..syscolumns) t
where t.name not in (select name from 数据库2..syscolumns)
select count(*) 不同字段数
from (select name from 数据库1..syscolumns) t
where t.name not in (select name from 数据库2..syscolumns)
本文介绍如何通过SQL查询语句,从两个不同的数据库中分别获取不同字段的数量,并进行对比。

被折叠的 条评论
为什么被折叠?



