Je suis en train de tronquer une table avec le printemps:Comment tronquer une table avec Spring JdbcTemplate?
jdbcTemplate.execute("TRUNCATE TABLE " + table);
Obtenez l'erreur:
Caused by: org.springframework.jdbc.BadSqlGrammarException: StatementCallback; bad SQL grammar [TRUNCATE TABLE RESULT_ACCOUNT]; nested exception is java.sql.SQLException: Unexpected token: TRUNCATE in statement [TRUNCATE]
Toutes les idées?
Comment avez-vous défini la méthode 'NON_SUPPORTED'? –