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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Number of rows returned as column in query

Status
Not open for further replies.

tshad

Programmer
Jul 15, 2004
386
US
I know there is a way to put the number of rows returned as a column (not count() which would be an aggregate) in my select statement but can't remember what it is.

Something like:

SELECT Num_rows_returned, Name, address
FROM USERS

Where Num_rows_returned would be the number of rows returned. If it returned 10 rows, that columns would be 10 for all the rows.

Thanks,

Tom
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top