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

Numbers of rows in a table

Status
Not open for further replies.

johk02

Programmer
Aug 20, 2003
169
AU
Hi,

I am using a MySQL dB and I want to know the numbers of records in a table. Are there a more efficient way than using recordcount??

Thanks
Jonas
 
oh, you betcha

instead of returning all the rows from the database to coldfusion, and letting coldfusion count them, the better way is to let the database itself count them and then return only the count to coldfusion

select count(*) as c from daTable

r937.com | rudy.ca
 
Thanks works like a charm
But I gues you already knew that :)

Jonas
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top