<petite.abei...@gmail.com>
To: "General Discussion of SQLite Database" <sqlite-users@sqlite.org>
Sent: Tuesday, December 20, 2011 2:40:50 PM
Subject: Re: [sqlite] insert error
On Dec 20, 2011, at 8:34 PM, jim-on-linux wrote:
> cursor.execute insert into default (rowname) v
On Dec 20, 2011, at 8:34 PM, jim-on-linux wrote:
> cursor.execute insert into default (rowname) values ( '1' ) ;
'default' is a keyword:
http://www.sqlite.org/lang_keywords.html
If you insist on that name, double quote it.
___
sqlite-users mailing
Can someone let me know why the following
keeps giving invalid syntax err msg.
con = sqlite3.connect(sqldb)
cursor = con.cursor()
cursor.execute insert into default (rowname) values ( '1' ) ;
con.commit()
con.close()
I get invalid syntax pointing to the t in insert.
jimonlinux
3 matches
Mail list logo