Thursday, June 27, 2013

tiny features : Truncate table in 12c

New Features with Database 12c , CASCADE Usually used with Drop or update command (10g,11g) But now with Database 12c , you can use this features with Truncate command

SQL> select * from test ;
no rows selected
SQL> desc test ;

 Name   Null?    Type
 ----------------------------------------- -------- ----------------------------
 TEST_ID   NOT NULL NUMBER
 TEST_NAME    VARCHAR2(20)
SQL> truncate table test cascade ;
Table truncated.
More Features coming up :)
Thank you 
Osama mustafa

No comments:

Post a Comment