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 ?    3 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 the meaning of -805 SQL return code?

3 Answers  


How to fetch the last row from the table in SQL (db2)?

0 Answers  


What is runstats db2?

0 Answers  


What is the self-referencing constraint?

2 Answers  


Comment whether dclgen is mandatorily used. If not, then what is the point of using it?

0 Answers  






What is the syntax for creating a table in the db2 database?

0 Answers  


Can a primary key have null values? If we try to insert a null value in a primary key column, will it work or give an error code?

6 Answers  


Suppose the outcome of executing a query results in a row having null. Based on the answer how you use it? Its declaration and inclusion?

2 Answers   Verizon,


What is buffer pool in the db2 database?

0 Answers  


What is auditing?

2 Answers  


How to select the duplicate rows from a table?

4 Answers  


what is the difference between where clause and having clause

2 Answers   IBM,


Categories