Hi , I am posting some interview ques .

what is the use of cursors ? what is the diff between
select and cursor ? bith are used for data retrival ..
rite?

Answer Posted / yuvaevergreen

>>Cursors are memory structures used to handle multiple
rows at a time.
>>Though,select statement can fetch only multiple rows, we
cannot handle multiple rows using host variables.
Basic difference would be single row handling and multiple
rows handling.

Is This Answer Correct ?    6 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is db2 optimizer?

770


Hi Everyone... Under the Logical files, when am working on multiple rec format logical file, I have joined two pf's using the multiple record format logical file concept, but when i run queried the LF only the first mentioned pf records are reflecting and I am not able to see any of the field records specified under the second pf. Kindly let me know whats the reason behind this. Below is the str of LF., R rec PFILE(LOGICAA) CUSTNO CUSTNAME BILL K CUSTNO R rec1 PFILE(LOGICAA1) CUSTNO ADD K CUSTNO .....

1897


Is it possible to create an Instance in DB2 using DB2 Control Center ?

627


What is difference between isnull and coalesce?

618


How do we specify index to include or not during bind process.

1674






What is data manager?

605


Give a brief description of db2 isolation levels?

599


What is release/acquire in bind?

654


What is phantom read in db2?

636


What is universal database?

617


How can we retrieve the total number of records in RPG & CLLE?

194


What is buffer pool?

608


What is the syntax for seeing the columns and data types of a table in the db2 database?

576


Mention the definition of cobol in varchar field.

689


How do I delete a table in database?

596