bitsCN.com
使用Spring jdbctemplate时出错:
view sourceprint?01 org.springframework.jdbc.UncategorizedSQLException: PreparedStatementCallback; uncategorized SQLException for SQL [insert into t_data(id,content,status,type,r_id) values(?,?,?,?,?)]; SQL state [HY000]; error code [1442]; Can't update table 't_data' in stored function/trigger because it is already used by statement which invoked this stored function/trigger.; nested exception is java.sql.SQLException: Can't update table 't_data' in stored function/trigger because it is already used by statement which invoked this stored function/trigger.
02 org.springframework.jdbc.support.SQLStateSQLExceptionTranslator.translate(SQLStateSQLExceptionTranslator.java:124)
03
04 java.sql.SQLException: Can't update table 't_data' in stored function/trigger because it is already used by statement which invoked this stored function/