这个错误是因为您提供的日期中的月份超出了范围。在 Oracle 中,月份的范围应该在 1 到该月份的最后一天之间。

例如,如果您提供了这样的日期:'2022-02-30',则会报错 'day of month must be between 1 and last day of month',因为二月只有 28 天或 29 天(闰年)。

为了解决这个问题,您需要检查您提供的日期是否符合范围要求,并确保月份和日期的组合是有效的。

Oracle 报错 'day of month must be between 1 and last day of month' 解决方法

原文地址: https://www.cveoy.top/t/topic/pTYH 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录