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
What is the function of logging in the db2 database?
Explain the contents that are a part of dclgen.
Define check constraint.
How does a cursor work?
What is bind and rebind in db2?
What is cursor stability in db2?
On which levels locks can be applied?
What is meant by explain?
What is the difference between bind and rebind in db2?
What is rebind in db2?
what is a corelated subquerry?
What is concurrency?
What is copy pending and check pending in db2?
What is a storage group (stogroup)?
What are the various isolation levels possible?