Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

db2 cursor declaration with a group by 1

Status
Not open for further replies.

ratou

Programmer
Jun 3, 1999
4
US
Is there a way to know how many rows are returned after you open a cursor that was declared with a group by clause. In other words, how many groups I got without having to fetch & count until row not found?
 
Write a separate query with the same selection criteria as your cursor, but only SELECT COUNT(*). Jay
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top