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 |
Give the stages of instance startup to a usable state where normal users may access it.
What is cardinality?
Should you take the backup of Logfiles if the database is running in ARCHIVELOG mode?
How would you determine who has added a row to a table?
Explain an ORA-01555
What are the interface tables used for ar invoices, customers, receipts for conversion process? : oracle accounts receivable
How do you use trigger to create mutating state of table
I am working in Oracle Clinical 4.5.1 Please explain a bit.How to create Views in OC
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
What is db_recovery_file_dest in oracle? When do you need to set this value?
how can we add a field to the oracle standard forms through Form Persanlization or custom.pll
Are These Dff's Flexible?