Seleziona le colonne da una tabella specifica utilizzando INFORMATION_SCHEMA.COLUMNS
e ordina in ordine alfabetico con ORDER BY
:
SELECT column_name
FROM INFORMATION_SCHEMA.COLUMNS
WHERE table_schema = '[schemaname]'
AND table_name = '[tablename]'
ORDER BY column_name