how to resolve -811 error. give clear explination

Answers were Sorted based on User's Feedback



how to resolve -811 error. give clear explination..

Answer / u

When a Select query
or
Subselect query returns more than one row
the sqlcode -811 is returned

Is This Answer Correct ?    2 Yes 0 No

how to resolve -811 error. give clear explination..

Answer / srinvasa yadav

RETRIEVING MORE THAN ONE ROW BY USING SELECT STATEMENT THEN
AN ABEND WILL OCCUR I.E -811.
RESOLVE: DELCARE CURSOR

Is This Answer Correct ?    3 Yes 1 No

how to resolve -811 error. give clear explination..

Answer / venkat

REASON: BY USING SELECT QUERY,WE CAN ACCESS MULTIPLE ROWS THEN -811 ERROR OCCURS

SOLUTION : BY USING CURSORS, WE CAN ACCESS MULTIPLE ROWS

Is This Answer Correct ?    2 Yes 0 No

how to resolve -811 error. give clear explination..

Answer / krishnaveni

-811:cursor not defined:

whenever select trying to retrieve multiple records we will
get this error

this error can be resolved when we declare a cursor

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More DB2 Interview Questions

What is db2 instance?

0 Answers  


Before you give the explain statement, what are the prerogatives?

0 Answers  


Suppose pgm A calling Pgm B .Pgm B has some Db2 program. at the time of compilation should plan and package will be created for both A and B or only B? What is the concept?

2 Answers  


What is dclgen (declaration generator)?

0 Answers  


What is a cursor?

2 Answers  






What is rebind in db2?

0 Answers  


Explain what a plan is?

3 Answers   CTS,


What is a db2 package?

0 Answers  


DB2 is a A) data base/data communication system B) data base C) RDBMS D) Programming language

4 Answers   Accenture,


Is Cursor exicutable ?

3 Answers   TetraSoft,


What is the maximum length of a column name in DB2? 18 or 30 or anything other than these?

4 Answers  


Suppose we have a query for update update table1 set col1 = 'val1' where col2=(select .... from ...) suppose the subquery does not return any record, what will happen to update?

1 Answers   IBM,


Categories