What is the difference between DELETE and TRUNCATE?
Answers were Sorted based on User's Feedback
Answer / shilpa
Delete command delets one row or whole table with table
defination but truncate command only delete table not table
defination
| Is This Answer Correct ? | 2 Yes | 1 No |
Answer / debi
1.when we use delete command then the records from the
table is not deleted permanently so that when we further
use rollback command the records are again available in the
table but in case of truncate the data is permenently
deleted from the table.
2.in case of truncate data deletion is faster as compared
to delete
3.
we can't use ant where condition in case if truncate
| Is This Answer Correct ? | 2 Yes | 2 No |
Delete command will remove the data values ( all the
records of table) and space and table structure will be
ramain. We cannot free the space and remove the table
structure using Delete command.
Truncate command will free the memory and removes table
structure from data dictionary.
ramumcato@yahoo.com
| Is This Answer Correct ? | 9 Yes | 11 No |
Answer / sanjay keserwani
we can go upto some number of records through delete while
in truncate we have to unoccupied all records.
| Is This Answer Correct ? | 4 Yes | 7 No |
Answer / amol
Be very careful when deleting records. You cannot undo this
statement! but in mysql...
| Is This Answer Correct ? | 0 Yes | 5 No |
HP Interview -2016 Unix 1) grep command in unix 2) what is set command
Is left join faster than join?
1. is it possible to use the cursor atttibutes (%found ,% rowcount , %isopen , %notfound ) to our user defined cursor names ....... cursor cursor_name is select * from scott.emp if you use... cursor_name%found , %rowcount ,%isopen,%notfound...will it work... -------------------------- 2.what is the difference between the varray and index by table .. -------- 3. type type_name is table of number(8,3) index by binary_integer; identifier_name type_name; first , last , prior , next ,trim are the methods we can use it for the above type...simillary is there any way to apply for cursors... with thanks and regards..sarao...
What is differance unique key and primary key.
What is cold data?
How to run sql commands in sql*plus?
What are three advantages to using sql?
what are the methods using performance tunning in sql and pl/sql
how to create table with in the procedure or function?
What are the types of join in sql?
which command using query analyzer will give you the version of sql server and operating system? : Sql dba
Can we change the table name in sql?
Oracle (3259)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)