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...

in the CURSOR declare statement, if i am using an where
clause and trying to compare the value with a host-varialble.

EXEC SQL DECLARE C1 CURSOR FOR
SELECT DEPTNO, DEPTNAME, MGRNO
FROM DEPARTMENT
WHERE ADMRDEPT = :ADM-DEPT
Where would i need to provide value to this host-variable in
the where clause. how could i pass value to this
host-variable to check it.

Answer Posted / nagendra

before open cursor we can populate that value
ex move 1220 to adb-dept

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the rules for db2 programming?

1153


On which levels locks can be applied?

1200


How is the value function used?

1205


What is db2 instance?

1165


How many types of page locks can be held in db2?

1087


What is meant by union and union all?

1051


List down the types of triggers in the db2 database?

1079


What is the syntax for seeing the columns and data types of a table in the db2 database?

1230


Define db2.

1167


How do you concatenate the firstname and lastname from emp table to give a complete name?

1116


What is package in cobol db2?

1158


How can we read records for specific member in CL? AND rpg?

757


What is db2 look?

1075


How to check sequence on a table in db2?

1112


what is diffrence b/w file-aid tool and file-aid utility???

4959