【问题标题】:OperationalError: near "?": syntax errorOperationalError:靠近“?”:语法错误
【发布时间】:2017-05-28 16:14:06
【问题描述】:
create table Comment(
    cid integer primary key autoincrement,
    content string not null
);
db.execute('insert into Comment values ?', (request.form['content']))

【问题讨论】:

标签: python flask sqlite


【解决方案1】:

也许你可以试试这个

VALUES = ?

【讨论】:

    猜你喜欢
    • 2021-05-11
    • 2019-02-07
    • 2020-02-06
    • 2019-01-12
    • 2014-05-17
    • 2021-10-19
    • 2018-07-27
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多