|
-
Jun 29th, 2005, 03:32 PM
#1
Thread Starter
Fanatic Member
MySQL variable counting
SQL query...
How can I count a number of items through SQL without incrementing a variable all the time... (taking a lot of process server-side for no reason)
For instance,
If I have a structure named 'crack-addicts', containing a string 'name', how can I count the number of 'crack-addicts' without selecting * and doing and stuff...
thx for the help!
Last edited by Ruku; Jun 29th, 2005 at 10:44 PM.
-
Jun 29th, 2005, 05:55 PM
#2
Re: MySQL variable counting
SELECT COUNT(*) FROM crack-addicts
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Jun 29th, 2005, 10:43 PM
#3
Thread Starter
Fanatic Member
Re: MySQL variable counting
thx!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|