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

How do I add a column in db2?

1049


is it compulsory commitment control in journal?

2483


What are the benefits of using the db2 database?

1234


What are the various data types available in db2?

1094


What is db2 command?

1042


Can we delete records from view?

970


What is reorg and runstats in db2?

1220


What is difference between isnull and coalesce?

1059


When reorg is used?

1134


Is it possible using max on a char column?

1142


What is the advantage in De-normalizing tables in DB2?

1181


What do you mean by cursor?

990


How many databases are there?

1060


Mention data types used in db2 ?

1166


What are sqlcodes –803,-805, -811, -818,-904,-911,-913,-101, +100?

1187