SELECT * FROM information_schema.columns WHERE table_schema = 'database_name' ORDER BY table_name, ordinal_position