SQL Server中使用SQL语句查询某表的所有字段及数据类型 Posted on 2016-11-30 | Post modified: 2016-11-30 | Visitors: SQL Server中使用SQL语句查询某表的所有字段及数据类型 123456SELECT name AS column_name , TYPE_NAME(system_type_id) AS column_type , max_length , is_nullableFROM sys.columnsWHERE object_id = OBJECT_ID(N'customerbase') --customerbase 为表名