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 / mandar panse

Before opening this cursor thru OPEN <cursor_name>. because
when we open the cursor, it fetches all matching records
from table and stores them in buffer. so it evaluates that
where clause while opening the cursor.

Is This Answer Correct ?    8 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does sqlcabc has?

1054


What is buffer pool in the db2 database?

1102


What os does db2 run on?

980


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

1060


What is the syntax for FETCH in DB2 ?

1212


What is dbrm? What it contains? When it will be created?

1049


Explain the contention situations caused by locks?

1070


Explain the benefits you can get from mainframe connect?

970


When reorg is used?

1126


What is db2 purescale?

996


What is release/acquire in bind?

1102


What is ibm db2 used for?

1079


How to check last update on table in db2?

1059


What are iseries servers?

1075


Which command is used to connect to a database in DB2 ? Give the Syntax.

1102