这是一个简单的查询:
SELECT COUNT(*) FROM m_bug_t
WHERE date_submitted BETWEEN TO_DATE('2011-08-22','yyyy-mm-dd') AND TO_DATE('2011-08-29','yyyy-mm-dd')
AND status != 100
给出以下错误消息
ORA-00932: inconsistent datatypes: expected NUMBER got DATE
00932. 00000 - "inconsistent datatypes: expected %s got %s"
*Cause:
*Action:
Error at Line: 2 Column: 22
有任何想法吗?即使没有 to_date 函数,我也习惯使用 MySQL。