sqlite> SELECT * FROM RawResponseTimes WHERE CreationTime <= 2011-06-14 17:17:23;
Error: near ":17": syntax error
一切似乎都很好,但是对小时17不满意,是什么给出了?
使用SQLite。
答案 0 :(得分:29)
您的日期似乎缺少'
。
SELECT * FROM RawResponseTimes WHERE CreationTime <= '2011-06-14 17:17:23';
答案 1 :(得分:24)
将数据值保存在单引号中......
sqlite> SELECT * FROM RawResponseTimes WHERE CreationTime <= '2011-06-14 17:17:23';
答案 2 :(得分:0)
SELECT * FROM RawResponseTimes WHERE CreationTime <= CONVERT(DATETIME, '2011-06-14 17:17:23');