지정된 date형식에 맞지 않아서 나오는 오류(ex: 월은 12월인데 221501)
select to_date(sysdate 'yyyymmdd')from dual;
이번 오류는 sysdate자체가 날짜형식인데 또 date로 바꾸려해서 나오는 오류이다.
임의의 형식으로 바꿔 비교하고 싶다면 to_char와같은 함수로 문자열로 바꾸어 비교하면 된다.
'error solution' 카테고리의 다른 글
JSP)The selection cannot be run on any server Error (0) | 2022.04.13 |
---|---|
심각: Error configuring application listener of class org.springframework.web.context.ContextLoaderListener (0) | 2022.04.13 |
Oracle) ORA-00947: not enough values (0) | 2022.04.05 |
Java Unbound 문제 (0) | 2022.03.29 |
500 에러 - [내부 서버 오류] NumberFormatException : Cannot parse null String (0) | 2022.02.24 |
댓글