[Tutor] How to test for the existence of a table in a sqlite3 db?

Alan Gauld alan.gauld at yahoo.co.uk
Sat Oct 14 04:07:21 EDT 2017


On 14/10/17 06:43, boB Stepp wrote:

> table if that table does not exist.  Alan suggested using
> executescript() to do this.  I misunderstood Alan and thought that
> this would take a filename and execute it.  

c.executescript(sqlFile.read())


-- 
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
http://www.amazon.com/author/alan_gauld
Follow my photo-blog on Flickr at:
http://www.flickr.com/photos/alangauldphotos




More information about the Tutor mailing list