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

what is parallel querying and what r hints.

1 Answers  


in which situations do u go for snowflake schema ?

2 Answers   TCS,


What is the main difference between a Joiner Transformation and Union Transformation?

5 Answers  


HOE DO U IMPLIMENT SCHEDULING IN INFORMATICA?

7 Answers   Patni, Wipro,


5. Consider the following products data which contain duplicate rows. A B C C B D B Q1. Design a mapping to load all unique products in one table and the duplicate rows in another table. The first table should contain the following output A D The second target should contain the following output B B B C C

0 Answers  






What is a test load?

1 Answers  


What are ETL Tools?

0 Answers   Informatica,


What is lookup change?

0 Answers  


what is mystery dimension?

1 Answers  


my source is like this id,name sal 10 abc 1000,10 pqr 2000, 10 xyz 3000 ,10 jkl 4000 and my requirement is like this 10 abc,pqr,xyz,jkl 2000 .... i have try for this by using expression transformatin its ok of the concatenation of second column but the thing is that on third column if u group by using agg t/r the last value will com i.e 4000 but i asked by a interviewer that i dont want the first or last column i want the middle column i.e 2000 .plz reply for the same

2 Answers   KPIT,


What are the different transaction levels available in transaction control transformation?

0 Answers   Informatica,


What is domain in terms of informatica?

0 Answers  


Categories