GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Oracle  >  SQL
Go To First  |  Previous Question  |  Next Question 
 SQL  |  Question 87 of 171    Print  
In the real world, where do we use Savepoint command.

  
Total Answers and Comments: 3 Last Update: October 23, 2006     Asked by: sbagai2001 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
June 05, 2006 06:41:48   #1  
satya ranjan pal        

RE: In the real world, where do we use Savepoint comma...

Savepoints let you undo selected changes within a transaction. Your application can set any number of savepoints using SQL SAVEPOINT statements and then use SQL ROLLBACK TO SAVEPOINT statements to indicate which changes within the unit of work to undo. When the application no longer uses a savepoint.

example:

savepoint A

..

..

savepoint b

...

..

rollback to savepoint


 
Is this answer useful? Yes | No
August 02, 2006 10:46:10   #2  
dmadhusudhanarao Member Since: August 2006   Contribution: 7    

RE: In the real world, where do we use Savepoint comma...

good question.

remember... you are doing huge work. means assume that you have execute 100 queties. ok . you already finished 50 queries. after executing the 51 query you thaught there is a mistic. what you will do. if you rollback then all the work will be rollbacked.

to overcome this problem they introduced this savepoint consept. after executing some work put one flag and after that one flag. like that. if you want to rollback it then rollback to particular flag.

rollback to savepoint1....

thanks & Regards

Madhu D.


 
Is this answer useful? Yes | No
October 23, 2006 11:44:06   #3  
thumatinagaraju Member Since: October 2006   Contribution: 26    

RE: In the real world, where do we use Savepoint comma...
nice reply sir
 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape