select * from orders where odate between '2010-01-01'and
'2010-03-31' How do u fetch this into cursor?
Answers were Sorted based on User's Feedback
Answer / 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 |
What is dbrm? What it contains? When it will be created?
How connect db2 database to datastage?
What is normalization and what are the five normal forms?
Explain about mirror activator disk mirroring?
What is a lock?
What are concurrency issues?
Suppose we have a query for update update table1 set col1 = 'val1' where col2=(select .... from ...) suppose the subquery does not return any record, what will happen to update?
What is the difference between Where and Having Clause
What do you mean by rollback?
how 2 resolve the -311 sqlcode
Is ibm db2 open source?
how to fetch first 100 rows in db2