Support:Queries: Difference between revisions
Content deleted Content added
imported>Kymara |
imported>Hendrik Brummermann |
||
| (21 intermediate revisions by 2 users not shown) | |||
Line 17:
</source>
=== Merge
<source lang="SQL">▼
1. Learn the names of the original account and new account:
<pre>
SELECT account.username, account.status
FROM characters, account
WHERE account.id=player_id AND charname='[charname]';
</pre>
2. As user marauroa execute the following script. <nowiki>[oldaccount]</nowiki> is the account name, from which the characters are taken away.
cd /var/www/stendhal/scripts/cmd
php merge.php [oldaccount] [newaccount]
</source>
Line 90 ⟶ 96:
SELECT left(timedate, 10) As day, source, param1, count(*) As cnt
FROM gameEvents
WHERE event='use' AND timedate>date_sub(CURDATE(), INTERVAL
GROUP BY day, param1, source ORDER BY cnt DESC
LIMIT 50;
| |||