SqlServer表字段查詢
--查詢表字段和字段類型 select syscolumns.name,systypes.name from syscolumns,systypes where syscolumns.xusertype=systypes.xusertypeand syscolumns.id=object_id ...
臨時字段格式 字段名 N 字段值 例子如下: select cEmp C, cEmp N, oper id N , log pw N , sSex, cDept C, cDept N, sStatus from f t employee ...
2017-11-20 15:15 0 1172 推薦指數:
--查詢表字段和字段類型 select syscolumns.name,systypes.name from syscolumns,systypes where syscolumns.xusertype=systypes.xusertypeand syscolumns.id=object_id ...
查詢一個表的所有列名,數據類型 information_schema:系統視圖 sys.extended_properties:系統視圖 ...
--查詢表的字段說明--use dataname -----數據庫名SELECT t.[name] AS 表名,c.[name] AS 字段名,cast(ep.[value] as varchar(100)) AS [字段說明] FROM sys.tables AS t INNER JOIN ...
引用來源:https://www.cnblogs.com/accumulater/p/6155241.html ...