SQL TRUNCATE Table - Javatpoint
SQL TRUNCATE Table - Javatpoint
Truncate table is faster and uses lesser resources than DELETE TABLE command.
Drop table command can also be used to delete complete table but it deletes table structure too.
TRUNCATE TABLE doesn't delete the structure of the table.
Let's see the syntax to truncate the table from the database.
For example, you can write following command to truncate the data of employee table
<<Prev Next>>
Feedback
Preparation
Company
Interview
Questions
Company Questions
Trending Technologies