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 isolation level?

4 Answers  


How do you simulate the EXPLAIN of an embedded SQL statement in SPUFI/QMF? Give an example with a host variable in WHERE clause)

2 Answers  


AGGREGATE function support by DB2. A) SUM & AVG B) SUM, MIN & AVG C) SUM, MAX, AVG , MIN &COUNT D) NONE

2 Answers   Accenture,


i have one file having 100 of records? i want to display it like 20 records in one column and 20 records in another column total 40 records per page ? how ?

2 Answers   EDS,


Where can you declare a cursor in a cobol-db2 program?

0 Answers  






What is the maximum size of a char data type in db2?

0 Answers  


Is it Possible to read from PS file and write it to database by using dynamic sql(execute immediate)

2 Answers  


Define data page.

0 Answers  


What is performance tuning db2?

0 Answers  


What does an outer join do?

1 Answers   CTS,


what are the SQL codes u freequently got?

2 Answers   Logica CMG,


What is access path in db2?

0 Answers  


Categories