Sqlite使用Python3错误?

时间:2015-04-30 19:55:05

标签: python python-3.x sqlite

我试图通过以下方式将一些数据插入到sqlite数据库中: -

param = '("593863695396044801","Ivan F. Siahaan","307783731","None","65","83","Thu Apr 30 19:45:13 +0000 2015","xyz")'

>>> conn.execute("INSERT INTO data "+param) Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
sqlite3.OperationalError: near ")": syntax error

我按如下方式初始化了与数据库的连接: -

from sqlite3 import dbapi2 as sqlite

conn = sqlite.connect('dataStore')

我在这里做错了什么?

0 个答案:

没有答案