what is the difference between normal select query and
currosor

Answers were Sorted based on User's Feedback



what is the difference between normal select query and currosor..

Answer / jagan

using select in embedded sql with where clause should fetch
only one row , but cursor can be used when we need more rows
to be retrieved one at a time.

In case more than one row is retrieved in a select clause it
will throw -811 sql error.

Is This Answer Correct ?    28 Yes 5 No

what is the difference between normal select query and currosor..

Answer / vinay srivastava

Normal select Query fetches all rows in one go while cursor
fetches one row at a time.

Is This Answer Correct ?    10 Yes 17 No

Post New Answer

More DB2 Interview Questions

What is a cursor and what is its function?

2 Answers  


What's the Maximum Length of SQLCA and what's the content of SQLCABC?

2 Answers  


why db2 is called as universal database?what is the storage capacity of db2v9 n what are the advantages of db2

3 Answers  


What is the database descriptor?

2 Answers  


What are packages in db2?

0 Answers  






What is meant by explain?

0 Answers  


Which transaction use a command thread ?

1 Answers  


What is role in db2?

0 Answers  


What db2 400?

0 Answers  


What is the function of logging in the db2 database?

0 Answers  


Can you Average the Characters ?

3 Answers  


While unloading huge amount of data from table. Suddenly job failed some error. Imagine 1M data unloading, In that 90% data unloaded only 10% left, So if want to unload the rest 10% what needs to be done? Whether do i need to start from top or anything ?

0 Answers   JPMorgan Chase,


Categories