日期:2014-05-17 浏览次数:20557 次
select a.name as 表名
from sysobjects a
left join syscolumns b on a.id=b.id
where a.xtype='U'
EXCEPT
select a.name as 表名
from sysobjects a
left join syscolumns b on a.id=b.id
where a.xtype='U' and b.name like '%成绩%'
select a.name as 表名
from sysobjects a
where a.xtype='U' and not exists(select 1 from syscolumns b where a.id=b.id and b.name<>'成绩')