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 / rohit mishra

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 ?    7 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is the role of the cursor in db2?

1115


What are the uses of db2 optimizer?

1361


Mention the various locks that are available in db2.

1089


What are db2 objects?

1092


Can you tell me how can you find out the # of rows updated after an update statement?

1150


How to find the number of rows in a db2 table?

1158


Mention the downsides of page level lock.

1220


List down the types of triggers in the db2 database?

1079


What is host variable?

1113


Define buffer pool.

1103


How do I delete a column in db2?

1157


What is a bind card?

1281


What is rebind in db2?

1119


How to check sequence on a table in db2?

1120


What is sqlca?

1133