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
What is db2 instance?
What is the function of logging in the db2 database?
What is db2? Explain.
What is database reorganization?
What are the uses of db2 optimizer?
What is the role of schema in the db2 database?
How do I start db2 in windows?
What is db2 plan table?
what is utility for parm lib
What are union and union all?
What is commit in db2?
What is sqlca?
What are foreign keys in db2?
Explain about mirror activator disk mirroring?
Discuss about db2 bind?