指定表名: select COLUMN_NAME from information_schema.COLUMNS where table_name = 'your-table-name'; 指定表名和数据库名 select COLUMN_NAME from information_schema.COLUMNS where table_name = 'your-table-name' and table_schema ='your-DB-name';