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



select * from orders where odate between '2010-01-01'and '2010-03-31' How do u ..

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

select * from orders where odate between '2010-01-01'and '2010-03-31' How do u ..

Answer / mahesh

don't use * in select statement while retrieving data from
database

Is This Answer Correct ?    2 Yes 1 No

Post New Answer

More DB2 Interview Questions

what is main use of table space and index object? please its urgent

5 Answers   CA, Cap Gemini, CGI, CTS, EDS, HTC, IBM, Satyam, Syntel, TCS, Wipro,


How can you get the number of rows impacted by the last executed query?

1 Answers  


What is the maximum size of varchar data type in db2?

0 Answers  


What is dpf in db2?

0 Answers  


PLAN IS EXECUTABLE AND PACKAGE IS NOT EXECUTABLE . THEN WHAT IS THE USE OF PACKAGE?

2 Answers   Tech Mahindra, Wipro,






What is dclgen in db2?

0 Answers  


Mention data types used in db2 ?

0 Answers  


What can the Locate option of the Repair Utility accomplish?

2 Answers  


What's the Maximum Length of SQLCA and what's the content of SQLCABC?

2 Answers  


What does a deadlock mean in DB2?

0 Answers  


What are the bind parameters ibm db2?

0 Answers  


What is Skeleton cursor table (SKCT)?

2 Answers  


Categories