Last active
December 10, 2015 04:38
-
-
Save idevacc/4381824 to your computer and use it in GitHub Desktop.
Mysql get all columns from all tables in a database -- 'dbname'
This file contains 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 * from information_schema.columns | |
where table_schema = 'db_name' | |
order by table_name,ordinal_position |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment