If you are working with mySQL SELECT COUNT (*) FROM ... is particularly fast, the engine being optimised for such things.
So if you just want to know if there are any records available, thats the way to do it, rather than fetching the records themselves. If you need the data also, of course it is better to go with the other suggestions.
CountZero
"If you have four groups working on a compiler, you'll get a 4-pass compiler." - Conway's Law
In reply to Re: Re: if (empty record set)
by CountZero
in thread if (empty record set)
by chuleto1
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |