what is the difference between normal select query and
currosor
Answers were Sorted based on User's Feedback
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 |
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 |
I have a DB2 table which has 1000 rows.after udatingg first 110 rows, my job abends. Now what I have to do if I want to restart the job next time so that it should start updating from 111th row (without updating first 110 rows again).
In SPUFI suppose you want to select maximum of 1000 rows, but the select returns only 200 rows. What are the 2 SQLCODEs that are returned?
What are the contents of dclgen?
Bind concepts in DB2 cobol
10 Answers IBM, TCS, TRD, Virtusa,
pls explain the precompilation process of cobol-db2 pgm
What is a lock?
What is the maximum number of tables that can be stored on a Partitioned Table Space ?
I have a main program (A) where we delete some rows in table in a cursor, and we commit it in sub program(B). What will happen - will we get an error or not?
What is ALTER ?
What does db2 mean?
what is cursor stability?
how to execute qcmdexc in rpgle?plz write code also?