Truncate
Meaning in databases & SQL, with examples
In databases & SQL, truncate means: To remove all rows from a table at once with TRUNCATE TABLE, keeping the table and its structure; it is much faster than deleting rows one by one.
In Turkish: tabloyu boşaltmak, truncate etmek
How it is used
TRUNCATE takes no WHERE clause and usually does not fire DELETE triggers. In MySQL and Oracle it commits immediately and cannot be rolled back; in PostgreSQL and SQL Server it can be rolled back inside a transaction. It often resets identity counters too.
Example sentences
Truncate the staging table before each import so old rows don't get mixed in.
Someone truncated the wrong table, and we had to restore it from last night's backup.
Common collocations
- truncate a table
- TRUNCATE TABLE
- truncate vs delete
- truncate and reload
Related terms
This word in other fields
The same English word can have a different meaning in another field:
More terms: SQL Statements and Queries
Practise with graded reading
Reading at the right level is the fastest way to make new words stick. Pick free English books by level:
