Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

I am getting a error multiple row fetched while executing a
Cobol-DB2 program.How can I solve it without using a cursor.

Answer Posted / marekj

I mean you want to fetch only the first row and the select
statement is correct. You have to use "fetch first 1 row
only" eg.
select name
from peoples
where name like 'A%'
fetch first 1 row only;

Is This Answer Correct ?    15 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is consistency token in db2?

1066


What does runstats do in db2?

1025


What is a storage group (stogroup)?

1189


How can the firstname and the lastname from the emp table be concatenated to generate complete names?

1230


What is the maximum number of columns in a db2 table?

1215


Which component is responsible for processing sql statements and selecting access paths?

1074


What is a system catalog table in db2?

1104


what are bind concepts in db2 cobol?

1036


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

970


How to compare data between two tables in db2?

1033


Explain in brief how does db2 determine what lock-size to use?

961


What is a db2 table?

958


How do I add a column to a table in db2?

1051


What is a bind in db2?

985


Mention the different locking levels that are available in db2.

1073