获取某表所有列名和字段类型

Select sc.[name],st.[name] From SysColumns sc Left Join SysTypes st On sc.XUserType=st.XUserType Where id=object_id('T_User')
posted on 2008-11-16 01:25  一路前行  阅读(516)  评论(0编辑  收藏  举报