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 scrollable cursor in db2?

1054


What is the usage of open cursor command?

1100


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

1073


How does db2 sample database connect?

1024


How will you return the number of records in table?

933


What is cursor in dbms?

1060


Mention the different locking levels that are available in db2.

1127


What is collection in db2 bind?

1011


What is a system catalog table in db2?

1184


What are the bind parameters ibm db2?

1046


List down the types of triggers in the db2 database?

1022


What is the physical storage length of the data types: date, time, timestamp in the db2 database?

1158


Is db2 a database?

959


How can record locking be achieved in those DB2 versions which do not support it?

1073


What is buffer pool in the db2 database?

1091