Re: How can one detect which tables are in a database?
Roger Binns <[email protected]>
| Newsgroups | gmane.comp.python.db.pysqlite.user |
|---|---|
| Message-ID | <[email protected]> |
I use this single statement. select count(*) from sqlite_master where type='table' and name=? It has the advantage of returning a zero or one which you can use as a bool. Roger