Getting a list of tables in SQLite Database
Getting a list of tables in SQLite Database
I started experimenting with SQLite using El Choni's library. It's easy enough to connect to a table of which you know the name, but I can't figure out how to do this for a table that was defined (and given a name) by a user. Anyone knows how can I get a list with the names of the tables inside a given database ?
Try to get your information from the sqlite_master table, which should be included in every database.
kind regards
Heiko
Code: Select all
SELECT NAME FROM sqlite_master WHERE TYPE='table'
Heiko