用Statement.executeUpdate()执行truncate table总是返回-1

代码如下。
执行其他DDL诸如Drop之类的都能返回0,唯独truncate table每次都返回-1。但是查看表的时候表的内容确实已经被删除了。
数据库用的是sqlserver。

〈前略〉
String sql = “Truncate Table test_table”;
int result = 0;

Statement statement = sqlSession.getConnection().createStatement(ResultSet.TYPE_SCROLL_INSENSTIVE,ResultSet.CONCOR_READ_ONLY);

result = statement.executeUpdate(sql);

System.out.println(“sql返回值:” + result);

你可以参考一下https://www.manongdao.com/article-1049966.html