Translating SQLException with SQL state '42000', error code '1064'错误

PostgreSQL, Sybase]
2018-04-12 14:18:55 [org.springframework.jdbc.support.SQLErrorCodesFactory]-[DEBUG] Looking up default SQLErrorCodes for DataSource [{
CreateTime:"2018-04-12 14:18:43",
ActiveCount:1,
PoolingCount:0,
CreateCount:1,
DestroyCount:0,
CloseCount:0,
ConnectCount:1,
Connections:[
]
}]
2018-04-12 14:18:55 [org.springframework.jdbc.support.SQLErrorCodesFactory]-[DEBUG] Database product name cached for DataSource [[email protected]]: name is ‘MySQL‘
2018-04-12 14:18:55 [org.springframework.jdbc.support.SQLErrorCodesFactory]-[DEBUG] SQL error codes for ‘MySQL‘ found
2018-04-12 14:18:55 [org.springframework.jdbc.support.SQLErrorCodeSQLExceptionTranslator]-[DEBUG] Translating SQLException with SQL state ‘42000‘, error code ‘1064‘, message [You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘u LEFT JOIN admin_info a on a.user_id=u.id

WHERE u.user_type=‘10‘‘ at line 1]; SQL was [] for task [
### Error querying database. Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘u LEFT JOIN admin_info a on a.user_id=u.id

WHERE u.user_type=‘10‘‘ at line 1
### The error may exist in file [D:\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp3\wtpwebapps\easyleAdmin\WEB-INF\classes\com\yxl\manager\dao\mapper\UserAdminMapper.xml]
### The error may involve com.yxl.manager.dao.UserAdminDAO.selectCountEntity-Inline
### The error occurred while setting parameters
### SQL: select count(*) user_info u LEFT JOIN admin_info a on a.user_id=u.id WHERE u.user_type=?
### Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘u LEFT JOIN admin_info a on a.user_id=u.id

WHERE u.user_type=‘10‘‘ at line 1
]
2018-04-12 14:18:55 [org.mybatis.spring.SqlSessionUtils]-[DEBUG] Transaction synchronization deregistering SqlSession [[email protected]]
2018-04-12 14:18:55 [org.mybatis.spring.SqlSessionUtils]-[DEBUG] Transaction synchronization closing SqlSession [[email protected]]
2018-04-12 14:18:55 [org.springframework.jdbc.datasource.DataSourceUtils]-[DEBUG] Returning JDBC Connection to DataSource
2018-04-12 14:18:55 [org.springframework.jdbc.datasource.DataSourceTransactionManager]-[DEBUG] Should roll back transaction but cannot - no transaction available
2018-04-12 14:18:55 [org.springframework.web.servlet.mvc.method.annotation.ExceptionHandlerExceptionResolver]-[DEBUG] Resolving exception from handler [public org.springframework.web.servlet.ModelAndView com.yxl.manager.controller.UserAdminController.teacherList(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse,com.yxl.manager.common.Pager,com.yxl.manager.common.SelectBean)]: org.springframework.jdbc.BadSqlGrammarException:
### Error querying database. Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘u LEFT JOIN admin_info a on a.user_id=u.id

WHERE u.user_type=‘10‘‘ at line 1
### The error may exist in file [D:\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp3\wtpwebapps\easyleAdmin\WEB-INF\classes\com\yxl\manager\dao\mapper\UserAdminMapper.xml]
### The error may involve com.yxl.manager.dao.UserAdminDAO.selectCountEntity-Inline
### The error occurred while setting parameters
### SQL: select count(*) user_info u LEFT JOIN admin_info a on a.user_id=u.id WHERE u.user_type=?
### Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘u LEFT JOIN admin_info a on a.user_id=u.id

WHERE u.user_type=‘10‘‘ at line 1
; bad SQL grammar []; nested exception is com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘u LEFT JOIN admin_info a on a.user_id=u.id

WHERE u.user_type=‘10‘‘ at line 1
2018-04-12 14:18:55 [org.springframework.web.servlet.mvc.annotation.ResponseStatusExceptionResolver]-[DEBUG] Resolving exception from handler [public org.springframework.web.servlet.ModelAndView com.yxl.manager.controller.UserAdminController.teacherList(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse,com.yxl.manager.common.Pager,com.yxl.manager.common.SelectBean)]: org.springframework.jdbc.BadSqlGrammarException:
### Error querying database. Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘u LEFT JOIN admin_info a on a.user_id=u.id

WHERE u.user_type=‘10‘‘ at line 1
### The error may exist in file [D:\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp3\wtpwebapps\easyleAdmin\WEB-INF\classes\com\yxl\manager\dao\mapper\UserAdminMapper.xml]
### The error may involve com.yxl.manager.dao.UserAdminDAO.selectCountEntity-Inline
### The error occurred while setting parameters
### SQL: select count(*) user_info u LEFT JOIN admin_info a on a.user_id=u.id WHERE u.user_type=?
### Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘u LEFT JOIN admin_info a on a.user_id=u.id

WHERE u.user_type=‘10‘‘ at line 1
; bad SQL grammar []; nested exception is com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘u LEFT JOIN admin_info a on a.user_id=u.id

WHERE u.user_type=‘10‘‘ at line 1
2018-04-12 14:18:55 [org.springframework.web.servlet.mvc.support.DefaultHandlerExceptionResolver]-[DEBUG] Resolving exception from handler [public org.springframework.web.servlet.ModelAndView com.yxl.manager.controller.UserAdminController.teacherList(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse,com.yxl.manager.common.Pager,com.yxl.manager.common.SelectBean)]: org.springframework.jdbc.BadSqlGrammarException:
### Error querying database. Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘u LEFT JOIN admin_info a on a.user_id=u.id

WHERE u.user_type=‘10‘‘ at line 1
### The error may exist in file [D:\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp3\wtpwebapps\easyleAdmin\WEB-INF\classes\com\yxl\manager\dao\mapper\UserAdminMapper.xml]
### The error may involve com.yxl.manager.dao.UserAdminDAO.selectCountEntity-Inline
### The error occurred while setting parameters
### SQL: select count(*) user_info u LEFT JOIN admin_info a on a.user_id=u.id WHERE u.user_type=?
### Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘u LEFT JOIN admin_info a on a.user_id=u.id

WHERE u.user_type=‘10‘‘ at line 1
; bad SQL grammar []; nested exception is com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘u LEFT JOIN admin_info a on a.user_id=u.id

WHERE u.user_type=‘10‘‘ at line 1
2018-04-12 14:18:55 [org.springframework.web.servlet.DispatcherServlet]-[DEBUG] Could not complete request
org.springframework.jdbc.BadSqlGrammarException:
### Error querying database. Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘u LEFT JOIN admin_info a on a.user_id=u.id

WHERE u.user_type=‘10‘‘ at line 1
### The error may exist in file [D:\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp3\wtpwebapps\easyleAdmin\WEB-INF\classes\com\yxl\manager\dao\mapper\UserAdminMapper.xml]
### The error may involve com.yxl.manager.dao.UserAdminDAO.selectCountEntity-Inline
### The error occurred while setting parameters
### SQL: select count(*) user_info u LEFT JOIN admin_info a on a.user_id=u.id WHERE u.user_type=?
### Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘u LEFT JOIN admin_info a on a.user_id=u.id

错了不止一回   我是用SSM,这是数据库语言错误,检查下near附近的数据库语言

Translating SQLException with SQL state '42000', error code '1064'错误

原文地址:https://www.cnblogs.com/yaNew/p/8807555.html

时间: 2024-10-17 09:49:56

Translating SQLException with SQL state '42000', error code '1064'错误的相关文章

HTTP Status 500 - JDBC exception on Hibernate data access: SQLException for SQL [n/a]; SQL state [HY000]; error code [1364]; could not execute statement; nested exception is org.hibernate.exception.Ge

HTTP Status 500 - JDBC exception on Hibernate data access: SQLException for SQL [n/a]; SQL state [HY000]; error code [1364]; could not execute statement; nested exception is org.hibernate.exception.GenericJDBCException: could not execute statement 翻译

SQL state [72000]; error code [1013]; ORA-03111: 通信通道收到中断; java.sql.SQLException: ORA-01745: 无效的主机/绑定变量名;java.sql.SQLException: ORA-01013: 用户请求取消当前的操作

1.oracle批量插入 2.java.sql.SQLException: ORA-01745: 无效的主机/绑定变量名(数据太多的时候出现解决方法限制条数插入) /** * 按指定大小,分隔集合,将集合按规定个数分为n个部分 * @param <T> * * @param list * @param len * @return */ public static <T> List<List<T>> splitList(List<T> list,

SQL state [HY000]; error code [3]; 问题分析

工作流表单采用了freemarker技术将表单与后台数据库绑定,每次修改表单定义将会对该表单对应的数据库执行alter操作.今天测试系统在执行保存表单定义操作时,报如下错误: HTTP Status 500 - StatementCallback; uncategorized SQLException for SQL [ALTER TABLE T_DYMC_20140522141004 CHANGE f_xqdbm f_xqdbm VARCHAR(50) COMMENT '需求单编码';]; S

oracle SQL state [99999]; error code [17026]; 数字溢出

org.springframework.jdbc.UncategorizedSQLException: CallableStatementCallback; uncategorized SQLException for SQL [{call updateUser(?, ?, ?, ?, ?, ?)}]; SQL state [99999]; error code [17026]; 数字溢出; 产生背景: oracle数据库从11g升级到12c 调用存储过程的代码是用的spring的StoredP

mysql error code &#39;1064&#39; 排查过程

下午自测代码,在这个update上卡了一个半小时,大大的降低了开发的生产力,把排查过程发出来,好的士兵不会掉进同一个陷阱.先把异常堆栈打出来. 2016-03-28 17:23:38.420 main DEBUG [org.springframework.beans.factory.support.DefaultListableBeanFactory:463] - Finished creating instance of bean 'Sybase' 2016-03-28 17:23:38.42

Mybatis批量删除之Error code 1064, SQL state 42000;

(一)小小的一次记载. (二):最近的项目都是使用MyBatis,批量新增自己都会写了,但是一次批量删除可把我给折腾了下,写法网上都有,但是照着做就是不行,最后问公司的人,问网友才得到答案,那就是jdbc中需要在url中指定允许进行进行多条语句同时执行. 自己在写批量更新的时候也把相应的语句打印出来了的,复制出来执行是没问题,但是用junit测试的时候一直报错如下 Error code 1064, SQL state 42000: You have an error in your SQL sy

Inceptor [Code: 40000, SQL State: 42000] COMPILE FAILED: Internal error NullPointerException: [Error 40000] java.lang.NullPointerException

下面代码报空指针 with `__all_dim__` as ( select * from ( select from_unixtime(unix_timestamp(`__bts__`) -1,'yyyy-MM-dd HH:mm:ss') as `__bts__` from ( select concat_ws(' ', `d`.`date`, `t`.`time_of_day`) as `__bts__` from `ecmp`.`dim_date` as `d` left join `e

Error Code : 1064 You have an error in your SQL syntax; check the manual that corresponds to your My

转自:https://blog.csdn.net/haha_66666/article/details/78444457 Query : select * from order LIMIT 0, 1000 Error Code : 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use

MySQL主从复制中断,报“Error on master: message (format)=&#39;Cannot delete or update a parent row: a foreign key constraint fails&#39; error code=1217” 错误

前几天,发现从库挂了,具体报错信息如下: 分析思路 1. 因为我采用的是选择性复制,只针对以下几个库进行复制: card,upay,deal,monitor,collect.所以,不太可能出现对于sas_basic的操作能复制到该从库上. 2. 整个架构是1主2从,且都是选择性复制,上面这个从库是直接复制card,upay,deal,monitor,collect这几个数据库的数据,而另外一个从库则是忽略上述库,如下所示: 怀疑是在上述schema下,执行了DROP TABLE IF EXIST