Pau*_*and 10
INFORMATION_SCHEMA.COLUMNS视图将提供特定表名的列名.
SELECT Column_Name + ', '
FROM INFORMATION_SCHEMA.COLUMNS
WHERE TABLE_NAME = 'Table_Name'
Run Code Online (Sandbox Code Playgroud)
还有其他一些视图以及您可能认为有用的视图.这些INFORMATION_SCHEMA视图提供有关数据库架构的信息.
Select top 10 * from Information_Schema.tables
Select top 10 * from Information_Schema.views
Select top 10 * from Information_Schema.routines
Select top 10 * from Information_Schema.parameters
Run Code Online (Sandbox Code Playgroud)