0

What is the best way to truncate a table with ActiveJDBC? The Model class only has deleteAll().
So I guess I need to run a native SQL query, is Base.exec("TRUNCATE TABLE table1") the way to go?

Thanks.

4

1 回答 1

1

是的,如果要执行任意 SQL,请使用 Base.exec(sql)。

于 2015-09-19T02:23:57.780 回答