pysqlite problem

Tim Golden tim.golden at viacom-outdoor.co.uk
Wed Mar 1 12:43:10 CET 2006


[bapolis at gmail.com]

| my bad. that was the wrong code, here is my code:
| 
| from pysqlite2 import dbapi2 as sqlite
| con = sqlite.connect("ex1")
| cur = con.cursor()
| cur.execute("select * from tbl1")
| print cur.fetchall()

Just a thought... is the file containing
your database called -- exactly -- ex1? It's
not called ex1.db or something? Because sqlite
will happily create a new database when you
connect, and if it did, it would obviously not
contain your table.

TJG

________________________________________________________________________
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________



More information about the Python-list mailing list