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

What is the purpose of using commit?

1100


How do we specify index to include or not during bind process.

2129


What is ibm db2 database?

1008


Why cursor is used in db2?

1036


Explain about dbrm.

1049


What is db2 instance?

1103


Can we update view in db2?

1003


What is db2?

1185


What is query_cache_limit?

972


What are bind parameters in db2?

1048


If I have a view which is a join of two or more tables, can this view be updateable?

1139


What are the rules for db2 programming?

1092


Hi, i would like to start a new carrier in DB2 DBA.Which and what all step should i have to take..?

3157


How do you concatenate the firstname and lastname from emp table to give a complete name?

1077


How to execute stored procedure in db2 command editor?

1050