What is Difference Between delete and Truncate?

Answer Posted / kiran.

Delete(DML) : All records not possible to Delete at a time,
Where clause is allowed.
structure of the table is available.
Roll Back is possible.

Truncate(DDL): All records possible to Delete at a time,
Where clause is not allowed.
structure of the table is not available.
Roll Back is possible.
>Truncate Table<tablename>;

Is This Answer Correct ?    0 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the most important ddl statements in sql?

587


How do you add a column to a table?

610


How can the performance of a trigger be improved?

598


What is sql and also describe types of sql statements?

571


Is join an inner join?

543






Explain character-manipulation functions?

637


What are sql indexes?

554


Can sql function call stored procedure?

564


First round ------------------- - Procedure - Packages - Views - Virtual tables - Can we use dcl with in function? - Joins and few scenarios - Triggers and its type - Pragma, type and its functionality - How to create db link in oracle - Materialized view - How to find duplicate values from table? - Cursor and its functionality - Write a script to display friday and its date from a entire year. - Exception Handling Second round ------------------------ Gave a scenario like. Need to write a function to perform. When user try to change a password. It must not be last five password and a given password can be combination of characters, symbols, upper and lower case.

1149


What is view explain with example?

527


Is pl sql a scripting language?

598


How to change the order of columns in Oracle SQL Plus ?

622


how to see the create table statement of an existing table? : Sql dba

531


What is an exception in pl/sql?

550


discuss about myisam index statistics collection. : Sql dba

531