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 cascading rollback?

1200


What is bind plan?

1041


Which command is used to remove all rows from a table?

1101


can all users have the privilage to use the sql statement select * (dml)?

1158


How would you find out the total number of rows in a db2 table?

1044


Can you tell me how can you find out the # of rows updated after an update statement?

1091


Who uses db2?

1030


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

1032


What does db2 blu stand for?

1152


How do I add a column in db2?

1041


Define predicate?

1112


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

1095


When do you specify the isolation level?

1022


What is table space in db2?

1010


List out the three types of page locks that can be held.

1140