ANSI INFORMATION_SCHEMAテーブル(この場合はINFORMATION_SCHEMA.COLUMNS) MySQLの柔軟性を高める:
SELECT c.column_name
FROM INFORMATION_SCHEMA.COLUMNS c
WHERE c.table_name = 'tbl_name'
-- AND c.table_schema = 'db_name'
ORDER BY c.column_name
ANSI INFORMATION_SCHEMAテーブル(この場合はINFORMATION_SCHEMA.COLUMNS) MySQLの柔軟性を高める:
SELECT c.column_name
FROM INFORMATION_SCHEMA.COLUMNS c
WHERE c.table_name = 'tbl_name'
-- AND c.table_schema = 'db_name'
ORDER BY c.column_name