select s.[name] + '.' + t.[name] as tablename from sys.tables as t,sys.schemas as s where t.schema_id = s.schema_id and s.[name] = @dbo order by tablename 获取指定架构下的所有表 SELECT ( then d.name else '' end) 表名, a.colorder 字段序号, a.name 字段名, ( then '√'else '…