Hi all, I tried this but this does not work:
Does anybody how to count records without making a loop & a counter. The table I need to query is really big.Code:totalrecords=db:exec("SELECT COUNT(*) AS id FROM table")
thanks
gert
Professional Software Development Tools
Hi all, I tried this but this does not work:
Does anybody how to count records without making a loop & a counter. The table I need to query is really big.Code:totalrecords=db:exec("SELECT COUNT(*) AS id FROM table")
thanks
gert
select sum(1) as RecordCount
would work too -- but you shouldn't have to scan thru any records -- should be just a single record.
(Click here to contact me)
Providing Independent Professional Consulting Services for
IndigoRose products, World Wide.
Located in -8:00 (-7:00 DST) GMT Timezone (Western United States)
thanks Jassing!