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...


a cursor normally gets closed once we provide a commit . If
u try to close the same cursor with close cursor command
later after providing the commit will there be any sql-error.

Answers were Sorted based on User's Feedback



a cursor normally gets closed once we provide a commit . If u try to close the same cursor with cl..

Answer / pavithra

when we try to close the cursor that is already closed, it
will return the SQL error code

-501 - cursor found in the fetch or close statement is not open.


please correct me if wrong

Is This Answer Correct ?    4 Yes 3 No

a cursor normally gets closed once we provide a commit . If u try to close the same cursor with cl..

Answer / manasa

WHEN THE CURSOR IDENTIFIED IN A FETCH OR CLOSE STATEMENT IS
NOT OPEN,then we get -501 error.

Is This Answer Correct ?    1 Yes 0 No

a cursor normally gets closed once we provide a commit . If u try to close the same cursor with cl..

Answer / mehdee

- If you do COMMIT in your program, that means you have
UPDATE, INSERT or DELETE, which in this case you must
DECLARE CURSOR WITH HOLD, then it will not be closed after
COMMIT.

Is This Answer Correct ?    1 Yes 2 No

Post New Answer

More DB2 Interview Questions

What is a dbrm in db2?

0 Answers  


What is the physical storage length of each of the following DB2 data types: DATE, TIME, TIMESTAMP?

1 Answers   CTS,


Once you create a view, where would information about the view be stored?

1 Answers  


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

0 Answers  


Compare a subselect to a join?

1 Answers  


quary for 1> fetch last record 2> fetch in reverse order 3> fetch last 5 row 4> fetch second last record (their is no primary key) i think concept of count can be use for this in 4th

5 Answers  


What is an instance in db2?

0 Answers  


How and when does the db2 enforces the unique key?

0 Answers  


What techniques will be used to avoid deadlock??

5 Answers   IBM, SUN,


How to find primary key of a table in db2?

0 Answers  


can we update the table by using cursors can anyone post the query?

5 Answers   DELL, HCL,


Can one database have multiple instances?

0 Answers  


Categories