Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否可以(轻松)对 SHOW COLUMNS 或 DESC MySQL 命令的输出进行排序?
您可以使用对表名进行排序,order by但您必须select将information_schema下面的列名按alphabetical顺序排列
order by
select
information_schema
alphabetical
SELECT column_name FROM information_schema.columns WHERE table_name = 'table_name' ORDER BY column_name