ORACLE TRUNCATE TABLE statement

In Oracle, the truncate statement is used to remove all the records of a table. It works same as the delete statement but without using where clause.

Syntax

Truncate table table_name;  

Example 1

Table before truncate

ORACLE TRUNCATE TABLE statement

Table truncated

ORACLE TRUNCATE TABLE statement

Table after truncate

ORACLE TRUNCATE TABLE statement

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *