2024-10-02 16:27:27 发布
网友
我知道这是一个重复的问题,我看了所有的问题,但我看不出我做错了什么。在
这是我的sqlite3代码:
cursor.execute('''DELETE FROM dates WHERE (Date, Start, End) VALUES( ? , ? , ? );''', (fulldaterem, starttimehour2, endtimehour2))
然后得到错误:
我哪里出错了?在
DELETE语句不包含任何VALUES部分。参见^{} documentation:
DELETE
VALUES
您需要为WHERE子句构建一个布尔表达式:
WHERE
cursor.execute( '''DELETE FROM dates WHERE Date=? AND Start=? AND End=?''', (fulldaterem, starttimehour2, endtimehour2))
DELETE
语句不包含任何VALUES
部分。参见^{您需要为
WHERE
子句构建一个布尔表达式:相关问题 更多 >
编程相关推荐