pysqlite - Checking the existance of a table

Peter Hansen peter at engcorp.com
Sat Jun 18 12:52:06 EDT 2005


Gerhard Häring wrote:
> Or you can query the sqlite_master table (don't know any specification 
> off-hand, but it contains the schema information).

Item #9 in the FAQ (http://www.sqlite.org/faq.html#q9) shows it as:

CREATE TABLE sqlite_master (
   type TEXT,
   name TEXT,
   tbl_name TEXT,
   rootpage INTEGER,
   sql TEXT
);


-Peter



More information about the Python-list mailing list