53448 浏览
喜欢(2)

MS Server根据列表名查询表的字段名,字段类型,以类型长度

MS Server根据列表名查询表的字段名,字段类型,以类型长度SELECT A.COLID AS COLUMNID,A.NAME AS COLUMNNAME,B.NAME AS DATATYPE,A.LENGTH AS LENGTH FROM SYSCOLUMNS A,SYSTYPES B WHERE A.ID= OBJECT_ID('YourTable') AND A.XTYPE=B.XTYPE AND B.NAME <...

SQL Server 2014-03-15 17:37 0评论 0收藏
AD 友情赞助