OperationalError:接近“?”:语法错误

时间:2017-05-28 16:14:07

标签: python flask sqlite

create table Comment(
    cid integer primary key autoincrement,
    content string not null
);
db.execute('insert into Comment values ?', (request.form['content']))

1 个答案:

答案 0 :(得分:-1)

也许你可以试试这个

DispatchQueue.global(qos: .background).async {

    // load your data here

    DispatchQueue.main.async {
        // reload your collection view here:
        self.collectionView.reloadData()
    }
}