|The jOOQ User Manual. Multiple Pages : SQL building : SQL Statements : The TRUNCATE statement||previous : next|
The TRUNCATE statement is the only DDL statement supported by jOOQ so far. It is popular in many databases when you want to bypass constraints for table truncation. Databases may behave differently, when a truncated table is referenced by other tables. For instance, they may fail if records from a truncated table are referenced, even with ON DELETE CASCADE clauses in place. Please, consider your database manual to learn more about its TRUNCATE implementation.
The TRUNCATE syntax is trivial:
TRUNCATE TABLE AUTHOR;
TRUNCATE is not supported by Ingres and SQLite. jOOQ will execute a DELETE FROM AUTHOR statement instead.