select * from orders where odate between '2010-01-01'and
'2010-03-31' How do u fetch this into cursor?

Answer Posted / muneer

Declare orders_cur cursor
for
select * from orders where odate between '2010-01-01'and
'2010-03-31'.

Open orders_cur

fetch orders_cur....

Hi friends i think that will the procedure ...if any mistake
suggest me

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

ther r 2 tables OTTABLE & SALTABLE, add the otamt from OTTABLE to empsal of SALTABLE if eid is matched else add the unmatched from OTTABLE to SALTABLE

1597


What is the use of dclgen in db2?

588


Explain the function of data manager.

632


How do I copy a table in db2?

575


What is commit in db2?

596






What is a bind card?

681


How can you classify the locks in db2?

636


What does db2 blu stand for?

661


What is a trigger in the db2 database?

596


What is bind plan?

611


What is the clustering index in the db2 database?

584


What is dclgen (declaration generator)?

603


Who uses db2?

576


How is the value function used?

604


What is a db2 tablespace?

602