解决 PreparedStatementCallback; uncategorized SQLException for SQL

org.springframework.jdbc.UncategorizedSQLException: PreparedStatementCallback; uncategorized SQLException for SQL [SELECT S_SYDW_DWBM FROM TAB_SYDW_FKDWWHERE S_SYDW_DWBM = ?]; SQL state [null]; error code [0]; sql injection violation, syntax error: TODO : EQ S_SYDW_DWBM : SELECT S_SYDW_DWBM FROM TAB_SYDW_FKDWWHERE S_SYDW_DWBM = ?; nested exception is java.sql.SQLException: sql injection violation, syntax error: TODO : EQ S_SYDW_DWBM : SELECT S_SYDW_DWBM FROM TAB_SYDW_FKDWWHERE S_SYDW_DWBM = ?
	at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:84)
	at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:81)
	at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:81)
	at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:649)
	at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:684)
	at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:716)
	at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:726)
	at org.springframework.jdbc.core.JdbcTemplate.queryForObject(JdbcTemplate.java:800)
	at com.core.base.jdbc.OracleJdbcTemplate.queryForBean(OracleJdbcTemplate.java:63)
	at com.business.jurisdiction.dao.impl.JurisdictionDaoImpl.selectSydwDwbm(JurisdictionDaoImpl.java:769)
	at com.business.jurisdiction.service.impl.JurisdictionServiceImpl.saveFkdw(JurisdictionServiceImpl.java:380)
	at com.business.jurisdiction.controller.JurisdictionController.saveFkdw(JurisdictionController.java:697)

 PreparedStatementCallback; uncategorized SQLException for SQL 这个问题,是在操作数据库时出现的!

不知道你们出没出现这个问题,实际上是由于粗心造成的!

出错原因:

解决 PreparedStatementCallback; uncategorized SQLException for SQL_第1张图片



扫码领红包咯!领取余额宝红包,支付时用余额宝支付,就可以使用了!(少则1元,多则3-10元)时间有限哦解决 PreparedStatementCallback; uncategorized SQLException for SQL_第2张图片


你可能感兴趣的:(数据库,eclipse)