SQL TRUNCATE TABLE Builder
Generate a TRUNCATE TABLE statement only after an explicit confirmation. The statement can remove every row and is never executed here.
Destructive operation: the generated statement is not run here. Verify the selected database and keep a backup before executing it elsewhere.
Generate a confirmed SQL TRUNCATE statement
- Enter the table name.
- Read the warning about removing all rows.
- Tick the confirmation checkbox.
- Generate and carefully review the statement.
- Copy or download the SQL text only if it is intended.
About this tool
TRUNCATE removes all rows from the named table when run in a database. This page only outputs text; it never executes the statement. The generated statement does not include a WHERE clause because TRUNCATE affects the entire table.
Frequently asked questions
What does this SQL builder create?
It creates a SQL TRUNCATE TABLE Builder as editable SQL text using the fields on this page.
Does it connect to or change my database?
No. It generates SQL text in your browser and does not connect to a database, run queries or retrieve records.
What inputs and limits apply?
The generated statement does not include a WHERE clause because TRUNCATE affects the entire table. A confirmation checkbox is required before generation.
What safeguards are included?
TRUNCATE removes all rows from the named table when run in a database.
What should I review before using the SQL?
Database engines differ in transaction, identity-counter and permission behavior.