Skip to content

Instantly share code, notes, and snippets.

@idevacc
Created December 26, 2012 17:59
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/4381851 to your computer and use it in GitHub Desktop.
Save idevacc/4381851 to your computer and use it in GitHub Desktop.
Query to list all the fields from a table in mySql
select * from information_schema.columns
where table_schema = 'db_name' and table_name='tablename'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment