Invite command
#10

If you only need a count of something then you should use the COUNT() aggregate function. This is much more efficient than getting the row count because only a single value is sent instead of the entire result set.
PHP код:
SELECT COUNT(*) FROM players WHERE Member = %
This value can then simply be retrieved with (assuming R40) cache_get_value_index_int().
Reply


Messages In This Thread
Invite command - by StR_MaRy - 24.09.2016, 13:58
Re: Invite command - by Shinja - 24.09.2016, 14:53
Re: Invite command - by StR_MaRy - 24.09.2016, 14:56
Re: Invite command - by Shinja - 24.09.2016, 15:53
Re: Invite command - by StR_MaRy - 24.09.2016, 15:59
Re: Invite command - by Shinja - 24.09.2016, 16:03
Re: Invite command - by StR_MaRy - 24.09.2016, 16:16
Re: Invite command - by Shinja - 24.09.2016, 16:22
Re: Invite command - by StR_MaRy - 24.09.2016, 16:29
Re: Invite command - by Vince - 24.09.2016, 16:33

Forum Jump:


Users browsing this thread: 1 Guest(s)