31.10.2014, 11:19
Quote:
That has no effect at all. COUNT(*) simply counts all the rows in the table, while COUNT(key) counts all the rows in the table for which key is not null. And given that the primary key is never null they will just return the same thing.
|
@Last post, then use mysql_query to make the query, and cache_get_row_int to retrieve rows data.
https://sampwiki.blast.hk/wiki/MySQL/R33#mysql_query
Make sure you delete the cache after using it.