Skip to content

Instantly share code, notes, and snippets.

@idevacc
Last active December 10, 2015 04:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save idevacc/4381824 to your computer and use it in GitHub Desktop.
Save idevacc/4381824 to your computer and use it in GitHub Desktop.
Mysql get all columns from all tables in a database -- 'dbname'
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