◈ Study/에러노트(Error Note)🧱

[Error Note] ORA-01861: literal does not match format string [리터럴이 형식 문자열과 일치하지 않습니다]

예르미(yermi) 2022. 5. 24. 10:14
728x90

- ORA-01861: literal does not match format string [리터럴이 형식 문자열과 일치하지 않습니다]

ORA-01861: literal does not match format string
→ 쿼리의 날짜 형식과 서버의 날짜 형식이 다를 때 발생한다.

 

테스트 한 컴퓨터 환경은 '한국' 날짜형식이였으나, 서버 컴퓨터는 '미국' 날짜형식이여서 에러가 발생하였다.


- ORA-01861 해결 방법

기존의 쿼리 / 'checkin'과 'checkout'이 Date 타입이다.

 

'checkin'과 'checkout'을 TO_DATE로 형식을 지정해준다.


ORA-01861 에러 해결!

728x90