select * from information_schema.columns where table_schema = 'your_db' order by table_name,ordinal_position