| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | 5 | 6 | 7 |
| 8 | 9 | 10 | 11 | 12 | 13 | 14 |
| 15 | 16 | 17 | 18 | 19 | 20 | 21 |
| 22 | 23 | 24 | 25 | 26 | 27 | 28 |
- Docker
- wsdl
- cmd
- 프로세스
- java
- http
- START WITH
- 톰캣
- integer
- 키보드
- oracle
- 스레드 덤프
- equals
- 오블완
- MySQL
- 스레드
- Linux
- 삼성증권
- MariaDB
- 컨트롤러
- 안드로이드 스튜디오
- Tomcat
- letterspacing
- JDBC
- 티스토리챌린지
- 영상편집
- Database
- HTML
- API
- ibatis
- Today
- Total
블로그 이름
[ERROR] MySQLSyntaxErrorException: Unknown column 'SYSDATE' in 'field list' 본문
[ERROR] MySQLSyntaxErrorException: Unknown column 'SYSDATE' in 'field list'
Hide 2024. 12. 13. 19:16Maria DB에서 예외 발생, 아래는 예외 로그다.
ERROR [14:34:46.735] {DefaultQuartzScheduler_Worker-4} (AAAA.java:229) e
com.ibatis.common.jdbc.exception.NestedSQLException:
--- The error occurred in com/AAAA/common/control/map/maria/AAAA.xml.
--- The error occurred while applying a parameter map.
--- Check the AAAA-InlineParameterMap.
--- Check the statement (update failed).
--- Cause: cohttp://m.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown column 'SYSDATE' in 'field list'
at c//m.ibatis.sqlmap.engine.mapping.statement.MappedStatement.executeUpdate(MappedStatement.java:107)
at cohm.ibatis.sqlmap.engine.impl.SqlMapExecutorDelegate.insert(SqlMapExecutorDelegate.java:404)
at cm.ibatis.sqlmap.engine.impl.SqlMapSessionImpl.insert(SqlMapSessionImpl.java:82)
at com.ibatis.sqlmap.engine.impl.SqlMapClientImpl.insert(SqlMapClientImpl.java:58)
~~~
Caused by: cohttp://m.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown column 'SYSDATE' in 'field list'
oracle에서는 sysdate를 사용하지만
maria에서는 현재 시각을 사용하는 예약어로 NOW()를 사용한다.
NOW()로 변경 후 해결