SqlServer
查找某数据库中所有的字段
SELECT s.name,s.id,t.TABLE_NAME FROM SYSCOLUMNS s ,INFORMATION_SCHEMA.TABLES t WHERE s.id = OBJECT_ID(t.TABLE_NAME) and t.TABLE_CATALOG = ‘数据库名‘
and s.name = ‘字段名‘ order by TABLE_NAME
标签:obj _id format ble info serve blog 数据库名 inf
SqlServer
查找某数据库中所有的字段
SELECT s.name,s.id,t.TABLE_NAME FROM SYSCOLUMNS s ,INFORMATION_SCHEMA.TABLES t WHERE s.id = OBJECT_ID(t.TABLE_NAME) and t.TABLE_CATALOG = ‘数据库名‘
and s.name = ‘字段名‘ order by TABLE_NAME
标签:obj _id format ble info serve blog 数据库名 inf
原文地址:https://www.cnblogs.com/FlyLolo/p/8203695.html