Created
January 8, 2014 20:40
-
-
Save geobabbler/8324217 to your computer and use it in GitHub Desktop.
List all tables in SQLite database. http://stackoverflow.com/questions/82875/how-do-i-list-the-tables-in-a-sqlite-database-file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT name FROM sqlite_master | |
WHERE type IN ('table','view') AND name NOT LIKE 'sqlite_%' | |
UNION ALL | |
SELECT name FROM sqlite_temp_master | |
WHERE type IN ('table','view') | |
ORDER BY 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment