Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

wht happens if we close cursor with cursor with hold option?

Answer Posted / ratheesh nellikkal

Once u issued a close cursor statement , it will get closed.
You can not access it after that until u open it again.
In that case your procedure will exit with an error message
like
"SQL0501N The cursor specified in a FETCH or CLOSE
statement is not open. SQLSTATE=24501"

With hold option doesn't make any difference in this case.


But if you are doing a commint operation in between your
transactions then a cursor declared with 'with hold' option
will not get closed.

Is This Answer Correct ?    23 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

is it compulsory commitment control in journal?

2419


Which components manage deadlocks in db2?

1021


What is the use of with ur in db2?

1004


Explain how can you do the explain of a dynamic sql statement?

1066


Can we update view in db2?

946


Explain the function done by data manager?

1219


What is the maximum size of varchar data type in db2?

1068


What is db2 and what is the use of db2 optimizer?

996


What is null indicator in db2?

1054


How is the value function used?

1081


Why db2 is called db2?

972


Define db2.

1067


What is load replace in db2?

938


In an sql table that is embedded, what is the procedure to retrieve rows that are part of a db2 table?

1050


What is cobol db2?

935