The root cause of the error is that your SQL statement is not valid for the database you are talking to. You can say that the exception is a SQLException (i.e. Not from Spring), so your RDBMS essentially says: "I don't know what TRUNCAT TABLE FOO means."
You will need to read the database system manual to find out how to trim the table. Although many major databases (in any case, the latest versions) seem to support TRUNCATE TABLE statements, it sounds as if you cannot.
Although it is less efficient, you can also try DELETE FROM FOO query, where FOO is the name of your table.
source share