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 / santy
u will get -811 error code.
this will b solve in different way. first u have to find
out y this error comes.
exmple :-
If u r selecting the address of the emp with help of
Name key, then may b same name contain 2 different address,
as per the business need, it may contain 1 defualt address
and other is alternet address.
So as per the business need find out that which address
u want to select, and as per this need u can use one flag
veriable to differentiate these 2 address. make the change
as per above in ur table. with the help of solution u can
solve the above problem without using the cursor.
| Is This Answer Correct ? | 0 Yes | 4 No |
Post New Answer View All Answers
What are db2 tables?
Which are the db2 tools to protect integrity of the database?
How will you return the number of records in table?
What is sqlca?
What is db2 look?
What are the uses of db2 optimizer?
What is the result of open cursor statement?
Which component is responsible for db2 startup and shutdown?
Why do we need reorg in db2?
How do you select a row using indexes in db2?
How to check last update on table in db2?
What are catalog tables in db2?
What is data manager?
What is a page in db2?
What is the difference between "db2ilist" and "db2 get instance" commands in DB2 Database Server?