what is the difference between normal select query and
currosor

Answer Posted / jagan

using select in embedded sql with where clause should fetch
only one row , but cursor can be used when we need more rows
to be retrieved one at a time.

In case more than one row is retrieved in a select clause it
will throw -811 sql error.

Is This Answer Correct ?    28 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What's The Percentage Free Space ?

775


Is the primary key a clustered index?

611


Explain correlated sub-queries.

589


Explain various types of locks in db2?

693


What is db2 look?

580






What is db2?

743


What is db2 plan table?

622


What is package in db2 mainframe?

559


Discuss about db2 bind?

674


What is commit in db2?

596


What is the use of db2 optimizer?

611


Explain about rct in db2?

640


What is collection in db2 bind?

577


How can record locking be achieved in those DB2 versions which do not support it?

627


How to retrieve rows from a db2 table in embedded sql?

730