次のSQLをOracleDBに送信し、を取得してORA-00907: missing right parenthesis
います。
SELECT "LOGS"."ID",
"LOGS"."USER_ID",
"LOGS"."TIMESTAMP",
"LOGS"."SESSION_ID"
FROM "LOGS"
INNER JOIN "USERS" ON ("LOGS"."USER_ID" = "USERS"."USER_ID")
WHERE ("USERS"."USERNAME" IS NOT NULL
AND "LOGS"."TIMESTAMP" <= TO_TIMESTAMP(2013-03-26 23:59:59, 'YYYY-MM-DD HH24:MI:SS.FF')
AND "LOGS"."TIMESTAMP" >= TO_TIMESTAMP(2013-03-26 00:00:00, 'YYYY-MM-DD HH24:MI:SS.FF') )
この問題の原因は何でしょうか?