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 |
When do you use the IMAGECOPY?
What is iseries database?
Explain the EXPLAIN statement?
Suppose the outcome of executing a query results in a row having null. Based on the answer how you use it? Its declaration and inclusion?
What is the difference between "db2ilist" and "db2 get instance" commands in DB2 Database Server?
Explain an outer join?
What is syscat in db2?
What is sqlca’s maximum length?
What is the difference between drop table and delete table?
My cobol program(not having any sql statements) is calling another cobol program ( having sql statements), what is needed for compilation and run in jcls .
How to insert more than one record using insert?
What is cursor?