What error I will get if my select query gives multiple
row while executing a Cobol-DB2 program.How can I solve it
without using a cursor.
Answer Posted / nitin sharma
Hi,
You will get -811 SQLCODE if more than one rows will be
returned by your query.
To avoid this you can also use FETCH FIRST 1 ROWS ONLY in
your query like
SELECT * FROM EMP
FETCH FIRST 1 ROWS ONLY;
Hope this helps.
Nitin
| Is This Answer Correct ? | 11 Yes | 0 No |
Post New Answer View All Answers
How to rename a table in DB2 ?
Explain about rct.
What is the result of open cursor statement?
What is buffer pool and list some of them?
What is commit in db2?
What is cloudant database?
Why do we use cursor?
What is sqlca?
How can you do the explain of a dynamic sql statement?
i want to maintain uniqueness on pdf without make lf??????????
In case if at some point of time db2 is down, would that impact the pre-compilation process of a db2-cobol program?
What is null indicator in db2?
How to find the maximum value in a column in the db2 database?
What is the physical storage length of time data type?
What is the maximum length of sqlca?