How to get all columns’ names for all the tables in MySQL? October 9, 2022 by Tarik select column_name from information_schema.columns where table_schema="your_db" order by table_name,ordinal_position