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


When is the results table for the query in a DECLARE CURSOR
statement created?

Answers were Sorted based on User's Feedback



When is the results table for the query in a DECLARE CURSOR statement created?..

Answer / s

When OPEN CURSOR is executed

Is This Answer Correct ?    4 Yes 1 No

When is the results table for the query in a DECLARE CURSOR statement created?..

Answer / biswamoy

You can Declare Cursor either in Working-storage section or
in Procedure division. It is not executable

OPEN CURSOR is executable ( here it creates Result), Fetch
rows within loop then close cursor.

Is This Answer Correct ?    0 Yes 0 No

When is the results table for the query in a DECLARE CURSOR statement created?..

Answer / shailendra

cursor
declare cursor : it is not exectable statement it take
place in working storage section,it just keep the cursor
on that place where the condition is satisfied which is
define in the quary.


executable statement define in procedure division:

1> open cursor : it define now which cursor open to retrive
data, we can define many cursor at a time.
2> fetch cursor:this statement fetch the record which is
satisfy the condition
3> close cursor : it close the cursor

now if we want to fetch the same record again then it must
to go through open cursor statement again.

Is This Answer Correct ?    2 Yes 3 No

When is the results table for the query in a DECLARE CURSOR statement created?..

Answer / mani

the first one is correct i.e. when the open cursor statement
gets executed, the results table is created for the query in
declare cursor statement.

after that when fetch is done it is actually retrieved one
by one from the results table.

Is This Answer Correct ?    1 Yes 2 No

When is the results table for the query in a DECLARE CURSOR statement created?..

Answer / mehdee

It is not OPEN CURSOR is executed, it is the 1st FETCH.

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More DB2 Interview Questions

Is it mandatory to use DCLGEN? If not, why would you use it at all?

2 Answers  


can any body explain about plan and pakage in detail....

2 Answers   HSBC, IBM,


wht displays the number of times a query modified ?

2 Answers   TCS,


What are the various locks available?

5 Answers   CTS,


I need to view the number of tables existing under one particular Owner. Is it possible? If so, pl give the SQL query for this?

0 Answers  


wht are the restrictions for union ?

2 Answers   CTS,


Which isolation level provides maximum concurrency?

0 Answers  


How will you return the number of records in table?

0 Answers  


what is the input to PLAN? what is the input to DBRM?

4 Answers  


What are leaf pages?

3 Answers  


what is the role of the cursor in db2?

0 Answers  


how to resolve -805. give clear explination for that

2 Answers   IBM,


Categories