当我尝试在数据库中插入行时以及调用预准备语句时,我收到以下错误:
INFO XmlBeanDefinitionReader:315 - Loading XML bean definitions from class path resource [org/springframework/jdbc/support/sql-error-codes.xml]
07:05:53,727 INFO SQLErrorCodesFactory:126 - SQLErrorCodes loaded: [DB2, Derby, H2, HSQL, Informix, MS-SQL, MySQL, Oracle, PostgreSQL, Sybase]
以下是插入声明:
String sql = " INSERT INTO customer_Table (customer_no ,customer_name ,address_no ,phone_no"
+ " ,email_addr ,customer_type_code ,city_code ,language_code ,input_user_id ,input_timestamp ,last_update_user_id ,last_update_timestamp"
+ ") VALUES ( '"
+ customerNumber2
+ "' ,UPPER('"
+ getTrimmedString(customerName,300)
+ "') , '"
+ addSeqNum2
+ "'"
+ ",'"
+ processForNull(getTrimmedString(helperObject.getData().getVisitPhone(),30))
+ "','"
+ processForNull(getTrimmedString(helperObject.getData()
.getVisitEmailAddress(),256))
+ "','001','"
+ helperObject.getCityCode()
+ "', 'en','SYSTEM',SYSDATE+-1/24,'SYSTEM',SYSDATE+-1/21)";
jdbcTemplate.update(sql);
由于此错误代码未完全执行。我也没有得到完整的错误。
任何人都可以帮助我。
答案 0 :(得分:0)