sql2008 查询字段所属表

select a.name as 表名, g.*
from sysobjects as a left join syscolumns as b on a.id=b.id
left JOIN sys.extended_properties g
on b.id=g.major_id and b.colid=g.minor_id
where b.name='CSProjectID'

select a.name as 表名, g.*
from sysobjects as a left join syscolumns as b on a.id=b.id
left JOIN sys.extended_properties g
on b.id=g.major_id and b.colid=g.minor_id
WHERE
b.name='SourceTypeID'

上一篇:【面经_操作系统_(个人总结_(2))】


下一篇:Activity使用Serializable传递对象实例