wt is the difference between truncate and delete in which
situation u use delete and truncate in real time..

Answers were Sorted based on User's Feedback



wt is the difference between truncate and delete in which situation u use delete and truncate in r..

Answer / mukesh

TRUNCATE removes all rows from a table.The operation cannot
be rolled back and no triggers will be fired. As such,
TRUCATE is faster and doesn't use as much undo space as a
DELETE.

The DELETE command is used to remove rows from a table. A
WHERE clause can be used to only remove some rows. If no
WHERE condition is specified, all rows will be removed.
After performing a DELETE operation you need to COMMIT or
ROLLBACK the transaction to make the change permanent or to
undo it. Note that this operation will cause all DELETE
triggers on the table to fire.

TRUNCATE are DDL commands, whereas DELETE is a DML command.
As such, DELETE operations can be rolled back (undone),
while DROP and TRUNCATE operations cannot be rolled back.

Is This Answer Correct ?    20 Yes 1 No

wt is the difference between truncate and delete in which situation u use delete and truncate in r..

Answer / siva

In addition to Mukesh's answer, the truncate and delele
commands can also used on partitions in Oracle to truncate
or delete the records from the particular partition..

Is This Answer Correct ?    2 Yes 1 No

wt is the difference between truncate and delete in which situation u use delete and truncate in r..

Answer / babusuresh159

hi mukesh and siva thanks for posting answers...
in real time is dr any specif sitchuation to use truncate or delete

Is This Answer Correct ?    0 Yes 0 No

wt is the difference between truncate and delete in which situation u use delete and truncate in r..

Answer / bose3508

After completion of history extraction from database you
may go for truncate.To cleanse the oltp database.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Informatica Interview Questions

Which kind of index is preferred in DWH?

2 Answers  


What is the Difference between SetVariable and setmaxvariable in informatica?

1 Answers  


How can we send the flat file data to different targets(which are also flat files) based on the name of flat file with out adding extra columns?

0 Answers  


Hi Experts , Can you please help me regarding the below question How to remove first three rows and last three rows in informatica.. thanks and regards Natraj

2 Answers  


What are the challenges you have faced in your Project (DWH- ETL)? Explain with example?

0 Answers   TCS,






Hi experts ,I have a Source of 1000 records.I have to load 100 records in first target,101 to 200 records in 2nd target, 201 to 300 records in 3rd target and again 301 to 400 in first target like that as cyclick process. How can i acheive this.

5 Answers   DELL, TCS,


What is an expression transformation in informatica?

0 Answers  


What is the maplet?

0 Answers   Informatica,


What is the difference between router and filter?

0 Answers  


i have flat file it contains 'n' number of records, i need to send half of the records to one target table and Remaining half to another target table: pls full details

8 Answers   L&T, TCS, UnitedHealth Group, Wipro,


how can run the wf through pmcmd commend? write script?

2 Answers   Cap Gemini,


Examples of Fatal & Non-Fatal error?

2 Answers   Cap Gemini,


Categories