Skip to content

Instantly share code, notes, and snippets.

@gotodeploy
Created January 18, 2014 21:33
Show Gist options
  • Select an option

  • Save gotodeploy/8496809 to your computer and use it in GitHub Desktop.

Select an option

Save gotodeploy/8496809 to your computer and use it in GitHub Desktop.
Get all table names (comma separated) from "database_name".
SELECT GROUP_CONCAT(TABLE_NAME) FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA = "database_name";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment