what is the difference between TRUNCATE and DELETE command
in SQL
Answers were Sorted based on User's Feedback
Answer / amit
In Truncate only data are remove from table
where as in delete structure of table are delete.
Is This Answer Correct ? | 3 Yes | 9 No |
Answer / rams
TRUNCATE:
1. it is a DML command.
2. by using truncate we can remove data in a table
permanantly.
3. we cant roll back the data.
4. it is faster than delete command.
DELETE:
1. it is a DDL command
2. by using delete command we can remove data in a table,
but we can rollback the data.
4. it is slower than the truncate command.
Is This Answer Correct ? | 13 Yes | 21 No |
can we drop dual table
What is an Oracle database Full Backup?
write a query to find the third maximum salary of a employee.(table:employ col name:salary)
In my table i'm having the duplicate records with sequence number and my requirement is when in new record is coming i want to delete existing old record(onlyone i.e maintaing the partial duplicate date )and add new record
hi all, i have installed oracle xe software in windows 7. iam unable to connect sqldeveloper tool. can you please tell me how to connect. provide completed procedure.
What do you mean by Oracle MEDIA RECOVERY?
Give two examples of referential integrity constraints.
Explain the process of recievables in oracle financials. : oracle accounts receivable
How can you gather statistics on a table?
Name a tablespace automatically created when you create a database.
HOW SHALL WE DIFFERENTIATE BETWEEN PRIMARY KEY AND FORIEGN KEY?
How do you switch from an init.ora file to a spfile?