Vyberte sloupce z konkrétní tabulky pomocí INFORMATION_SCHEMA.COLUMNS
a seřadit podle abecedy pomocí ORDER BY
:
SELECT column_name
FROM INFORMATION_SCHEMA.COLUMNS
WHERE table_schema = '[schemaname]'
AND table_name = '[tablename]'
ORDER BY column_name