Skip to content

Instantly share code, notes, and snippets.

@umanda
Created September 1, 2015 11:02
Show Gist options
  • Save umanda/1f0e0765222a2f7d0e9f to your computer and use it in GitHub Desktop.
Save umanda/1f0e0765222a2f7d0e9f to your computer and use it in GitHub Desktop.
How to get all table names of a particular database by SQL query?
SELECT TABLE_NAME
FROM INFORMATION_SCHEMA.TABLES
WHERE TABLE_TYPE = 'BASE TABLE' AND TABLE_SCHEMA='dbName'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment