0
Ruby代碼按日期間隔選擇記錄:Oracle日期錯誤ORA-01830
monthly_activity = activity.trn_activity_items.find_by(
'month >= ? AND month < ?',
activity.daily_stat_date.beginning_of_month,
activity.daily_stat_date.end_of_month
)
所有工作在MySQL和Postgres罰款,但甲骨文似乎`噸喜歡的事,我不能明白究竟是什麼。
Oracle錯誤:
OCIError: ORA-01830: date format picture ends before converting entire input string: SELECT "TRN_ACTIVITY_ITEMS".* FROM "TRN_ACTIVITY_ITEMS" WHERE "TRN_ACTIVITY_ITEMS"."TRN_ACTIVITY_ID" = :a1 AND (month >= '2017-07-01 00:00:00' AND month < '2017-07-31 23:59:59.999999') AND ROWNUM <= :a2
感謝您的幫助。