Command lags the whole server
#7

Yes. GROUP BY does that and it produces one result set that can be read in one go. I usually switch the columns around so groupid is first and member count is second, but it shouldn't matter. A query like this:
PHP код:
SELECT member AS factionIdCOUNT(*) AS memberCount FROM Player GROUP BY member 
produces a result like this:
factionId memberCount
2 10
4 8
7 13
Reply


Messages In This Thread
Command lags the whole server - by danielpalade - 10.01.2017, 00:12
Re: Command lags the whole server - by BiosMarcel - 10.01.2017, 00:29
Re: Command lags the whole server - by danielpalade - 10.01.2017, 01:40
Re: Command lags the whole server - by Lordzy - 10.01.2017, 01:55
Re: Command lags the whole server - by BiosMarcel - 10.01.2017, 15:45
Re: Command lags the whole server - by danielpalade - 10.01.2017, 16:51
Re: Command lags the whole server - by Vince - 10.01.2017, 17:12
Re: Command lags the whole server - by danielpalade - 10.01.2017, 17:19
Re: Command lags the whole server - by Vince - 10.01.2017, 21:21
Re: Command lags the whole server - by danielpalade - 10.01.2017, 22:10

Forum Jump:


Users browsing this thread: 2 Guest(s)