在“已创建”属性中,我会记住创建日期,其类型为: yyyy-mm-dd hh:mm:ss。
我想创建一个查询,删除创建的WHERE行大于值。
我试过这个版本:
DELETE FROM tasks
WHERE projectid ='1182' AND assignerid ='48' AND created BETWEEN DATE(2014-06-10) AND DATE(2014-07-16)
或
DELETE FROM tasks
WHERE projectid ='1182' AND assignerid ='48' AND created > #2014-06-10 00:00:00#
但他们都没有工作。我该怎么办?
答案 0 :(得分:1)
您使用的分隔符不正确,请使用'
作为日期。
DELETE FROM tasks
WHERE projectid ='1182' AND assignerid ='48' AND created > '2014-06-10 00:00:00'