Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试通过以下语句使用时间范围查询 SQL 表。
SELECT columnName FROM tableName WHERE time between 2013-05-03 22:47:02 and 2013-11-19 22:47:02
如果列“时间”的类型为 TIMESTAMP,则示例条目是
2013-09-07 15:00:00
我得到的答复是语法有问题,谁能告诉我我做错了什么?
您需要在日期时间值周围加上单引号。