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
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 |
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 |
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 |
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 |
When do we use dynamic cache and static cache in connected and unconnected lookup transformations?
Define Incremental Aggregation?
What is source qualifier transformation?
One source and 3 targets 1st row-1st target 2nd row-2nd target 3rd row-3rd target 4th row-1ist target how will u do?
write a query following source region sales 1 1000 2 2000 i want the output ?please give solution 1 2 1000 2000
what is dimension table?
surrogate keys usage in Oracle and Informatica?
5 Answers ITC Infotech, Oracle,
How will u pas the data with out debugger?
What is informatica powercenter repository?
source table A having 100000 records. and target B table having 100000 records. now iam updating B records using update query. i don't know which record is update in target. write a sql query get all updated records from target table B.
what is mean by grouping of condition column in lookup transformation?
Name the different lookup cache(s)?