分享个昨天学的,sqlserver查表的所有列的列名,类型,长度的sql

 select a.name as 列名, a.length as 长度,b.name as 类型 from syscolumns a left join systypes b on a.xtype = b.xtype left join sysobjects c on c.id = a.id -- where c.name = '' 
原文地址:https://www.cnblogs.com/cellphoneyeah/p/6649561.html