--查询表字段和字段类型 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 ...