ORA-01846错误是Oracle数据库中的一个常见错误,其错误消息为“not a valid day of the week”(不是有效的周中的日)。下面是对该错误的详细解释、可能的原因以及解决方法的建议。 1. ORA-01846错误的含义 ORA-01846错误通常发生在处理日期函数时,尤其是当使用到需要指定星期几的函数(如NEXT_DAY)时。如果提供的...
[oracle@localhost ~]$ oerr ora 01846 01846, 00000, "not a valid day of the week" // *Cause: // *Action: (2)在server端sqlplus上运行 SQL> SELECT last_name,hire_date, 2 NEXT_DAY(ADD_MONTHS(hire_date, 6),'Sunday') REVIEW 3 FROM hr.employees; LAST_NAME HIRE_DATE REVIEW --- --...
not a valid day of the week Cause A date specified an invalid day of the week. Valid days are: Monday-Sunday, for format code DAY Mon-Sun, for format code DY 1-7, for format code D Action Enter a valid day of the week value in the correct format....
您的代码有效。然而,第二个论点next_day()是语言相关的,所以我怀疑你的数据库不是英文的。您可以通...