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
What is an instance in db2?
What is db2 optimizer?
Which component is used to execute the sql statements?
My sql statement select avg(salary) from emp yields inaccurate results. Why?
How do I import a csv file into db2?
What is table space in db2?
can all users have the privilage to use the sql statement select * (dml)?
What does db2 plan contain?
How do you find the maximum value in a column in db2?
what is diffrence b/w file-aid tool and file-aid utility???
What is meant by explain?
what is a corelated subquerry?
What are the full forms of spufi and dclgen and why are they used?
Is it possible using max on a char column?
What is schema in db2?