Can you use a select query in a loop to fetch multiple rows?
If so what is the advantage of using a cursor?

Answer Posted / satheesh reddi

no...for that we are using cursors. due to cursors we can retrieve or fetch number of rows at a time from the table

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is db2? Explain.

781


What is difference between alias and synonym in db2?

855


I HAVE 500 ROW TO UPDATE I WOULD LIKE TO USE ROLLBACK ALONG WITH COMMIT.WHAT IS THE SYNTAX TO CODE COMMIT AND ROLLBACK FOR EVERY 100 ROWS.AND HOW THE CURSOR ROLLBACK TO THE LAST COMMITTING POINT.

2967


What are packages in db2?

784


What is meant by explain?

853


How is the value function used?

835


What is the difference between bind and rebind in db2?

1179


What is a dbrm in db2?

746


Explain db2.

809


Can you use max on a char column?

826


What is cloudant database?

840


What is commit in db2?

806


What are sqlcodes –803,-805, -811, -818,-904,-911,-913,-101, +100?

953


Is it possible using max on a char column?

844


How to check last update on table in db2?

812