Answer Posted / nandini sett
Both delete and Trunate are DML or Data Manupilating
Language.
Both statements --- Delete table_name and Truncate table
table_name --- deletes all rows.
Truncate Table works faster than delete.
Truncate table does not support where clause and truncate
doe not fire a trigger. When truncate is used the deleted
rows are not entered in transaction log.
| Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
Describe different types of general function used in sql?
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.
What is constant in pl sql?
How to read/write files from pl/sql?
What is the difference between cross join and natural join?
What is difference between sql and mysql?
Which is better join or subquery?
What is meant by cursor in sql?
What is normalization in sql?
Where are my tempfiles, I don't see them in v$datafile or dba_data_file?
Why do we use subquery?
What do you mean by table in sql?
How does pl sql work?
Can we use delete in merge statement?
what is an index? : Sql dba