Created
August 2, 2013 13:48
-
-
Save hmert/6140007 to your computer and use it in GitHub Desktop.
getting all column names from all tables in Mysql without having to list all the tables
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
select TABLE_SCHEMA,TABLE_NAME,COLUMN_NAME from information_schema.columns | |
where table_schema = 'eba' | |
order by table_name,ordinal_position limit 10000 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment