What is the diff between Truncate table / delete <table
name> purge

Answer Posted / murthy

TRUNCATE:-IT WILL DELETE ALL THE EXISTING RECORDS IN A TABLE

SYNTAX:-TRUNCATE TABLE <TABLE NAME>

DELETE:-IT WILL DELETE THE RECORDS IN A TABLE DEPENDINFG ON
THE GIVEN CONDITION.

SYNTAX:-DELETE FROM <TABLE NAME> WHERE <CONDITON>


PURGE:-AFTER PERFOMING DROP OPERATION THE TABLES WILL STORE
AT UNDO LOGS SO TO DELETE THE DATA COMPLETELY FROM TAHE
DATA BASE WE WILL PURGE THE RECYCLEBIN.

SYNTAX:-PURGE RECYCLEBIN.

Is This Answer Correct ?    10 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is an implicit commit?

565


name 3 ways to get an accurate count of the number of records in a table? : Sql dba

576


Why use stored procedures?

582


What is the purpose of normalization?

547


State some properties of relational databases?

588






What is difference between nchar and nvarchar?

554


How delete all data from all tables in sql?

546


How do you create a db file?

528


How do I trace sql profiler?

502


What is use of trigger?

519


how can we optimize or increase the speed of a mysql select query? : Sql dba

515


What is posting?

617


what are the authentication modes in sql server? How can it be changed? : Sql dba

712


Is progress software supports to ( pl/sql )?

542


What is parameter substitution in sql?

536