Skip to content

Instantly share code, notes, and snippets.

@Dillie-O
Last active May 24, 2017 14:18
Show Gist options
  • Select an option

  • Save Dillie-O/6ea3a2603776abe5167d12c61b3363f8 to your computer and use it in GitHub Desktop.

Select an option

Save Dillie-O/6ea3a2603776abe5167d12c61b3363f8 to your computer and use it in GitHub Desktop.
[Get List of Tables] Get list of tables in a database #tags: mysql
SELECT DISTINCT table_name
FROM information_schema.columns
WHERE table_schema = dbname;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment