|
Re: Test if table is a table in sqlite db: msg#00003python.db.pysqlite.user
Many thanks Tim, this is just what I was looking for! Regards, David Tim Golden wrote: > David Pratt wrote: >> Hi. I am looking to test whether a table is in an sqlite database. >> What is the name of the table. In postgres this would be a lookup in >> pg_tables. Many thanks. > > sqlite_master > > SQLite version 3.3.5 > Enter ".help" for instructions > sqlite> .schema sqlite_master > CREATE TABLE sqlite_master ( > type text, > name text, > tbl_name text, > rootpage integer, > sql text > ); > sqlite> > > TJG > |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | How big an integer in SQLite?: 00003, David Pratt |
|---|---|
| Next by Date: | Re: How big an integer in SQLite?: 00003, Gerhard Häring |
| Previous by Thread: | Re: Test if table is a table in sqlite dbi: 00003, Tim Golden |
| Next by Thread: | How big an integer in SQLite?: 00003, David Pratt |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |