Switching to MySQL
#6

Only useful if you're going to take advantage of its structure and functionalities. Sorting, grouping, counting, ...
However, this requires that you know how to properly design the database. A player's data will be scattered around different tables and additionally an individual player may have multiple rows assigned to them, depending on what's being stored. For example, I have this structure for a table that logs all individual sessions:



Which allows me to run this query:
PHP код:
select useridSEC_TO_TIME(SUM(time_logoff time_logon)) AS time_played FROM player_ip_list WHERE userid 1 GROUP BY useridippci 
Which then conveniently returns:
useridtime_played
106:34:25
Reply


Messages In This Thread
Switching to MySQL - by Johnson_Brooks - 25.05.2014, 18:56
Re: Switching to MySQL - by iZN - 25.05.2014, 19:10
Re: Switching to MySQL - by Dignity - 25.05.2014, 19:16
Re: Switching to MySQL - by Johnson_Brooks - 25.05.2014, 20:00
Re: Switching to MySQL - by Kaperstone - 25.05.2014, 21:07
Re: Switching to MySQL - by Vince - 25.05.2014, 21:26
Re: Switching to MySQL - by admantis - 25.05.2014, 22:08
Re: Switching to MySQL - by Mark_Weston - 25.05.2014, 23:42
Re: Switching to MySQL - by brent94 - 26.05.2014, 01:02

Forum Jump:


Users browsing this thread: 1 Guest(s)