查表中所有列名及其对于类型

--查表中所有列名及其对于类型
select a.name columnName,b.name columnType
from syscolumns a,systypes b
where a.xusertype=b.xusertype
and a.id=object_id('Person')

以上查的是Person表

原文地址:https://www.cnblogs.com/stublue/p/1788616.html