sqlserver系统表使用
SELECT
s.table_catalog as 数据库名,
o.name as 表名,
c.name as 列名
FROM
INFORMATION_SCHEMA.TABLES s,--库
sys.objects o,--表
sys.columns c--列
WHERE
s.table_name = o.name
AND object_name(c.object_id) = o.name
AND s.table_catalog = 'mytest'--库名
and o.name = 'user'--表名