Guten Tag, liebe epvp Community. ich scheitere grad ein wenig an einem MYSQL Query
Also, der Query sollte wie folgt aussehen.
aus der tabelle entschaedigung.player soll das feld "playtime" jedes Chars, der auf dem Account existiert zusammengerechnet werden und in die account.account tabelle (feld "entschaedigung") eingetragen werden
Die Account-ID ist in der entschaedigung.player als "account_id" angegeben
wäre cool, wenn jemand einen solchen query erstellen könnte
UPDATE account.account a INNER JOIN (SELECT account_id,sum(playtime) FROM player.player GROUP BY account_id) p ON a.id = p.account_id;
You need to have a playtime field in account table of course.
doesn't work. but thanks for that
i've got the following error:
[SQL] UPDATE account.account a INNER JOIN (SELECT account_id,sum(playtime) FROM player.player GROUP BY account_id) p ON a.id = p.account_id;
[Err] 1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
doesn't work. but thanks for that
i've got the following error:
[SQL] UPDATE account.account a INNER JOIN (SELECT account_id,sum(playtime) FROM player.player GROUP BY account_id) p ON a.id = p.account_id;
[Err] 1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
Gib in Putty Den befehl Ein: chmod -R 777 /var/db/mysql
Und dann Reboot
UPDATE account.account INNER JOIN (SELECT sum(playtime) AS summe FROM entschaedigung.player) p ON p.account_id = account.account.id SET account.account.playtime = summe;
So sollte es gehen.
Quote:
Originally Posted by xSpongBoZZ
Gib in Putty Den befehl Ein: chmod -R 777 /var/db/mysql
Und dann Reboot
"[Err] 1064 - You have an error in your SQL syntax;" - Das hat nichts mit den Rechten zutun.
UPDATE account.account INNER JOIN (SELECT sum(playtime) AS summe FROM entschaedigung.player) p ON p.account_id = account.account.id SET account.account.playtime = summe;
So sollte es gehen.
"[Err] 1064 - You have an error in your SQL syntax;" - Das hat nichts mit den Rechten zutun.
Danke für den Query. jetzt werd ich Vegetarier um deine Spezies nicht zu Gefährden ne spaß.
Aber das ganze will noch nicht so ganz:
[SQL] UPDATE account.account INNER JOIN (SELECT sum(playtime) AS summe FROM entschaedigung.player) p ON p.account_id = account.account.id SET account.account.playtime = summe;
[Err] 1054 - Unknown column 'p.account_id' in 'on clause'
UPDATE account.account INNER JOIN (SELECT account_id, sum(playtime) AS summe FROM entschaedigung.player) p ON p.account_id = account.account.id SET account.account.playtime = summe;
UPDATE account.account INNER JOIN (SELECT account_id, sum(playtime) AS summe FROM entschaedigung.player) p ON p.account_id = account.account.id SET account.account.playtime = summe;
So, nun aber.
[SQL] UPDATE account.account INNER JOIN (SELECT account_id, sum(playtime) AS summe FROM entschaedigung.player) p ON p.account_id = account.account.id SET account.account.playtime = summe;
Affected rows: 0
Time: 0.085ms
komisch ... kein row betroffen
Keine Ahnung an was das liegt
Die Felder hab ich schon gecheckt. sind vorhanden
PHP-Mysql _ query 06/08/2012 - Web Development - 0 Replies Hallo meine frage/problem wie kriege ich es hin das diese anfragen mit einem query abgesendet werden?
$eintrag = "INSERT INTO lions_aateilnahme
(Event,Freund,Personen,EssenFleisch, EssenFisch,EssenVeg,Kommen,Bemerkung)
VALUES
('$id','$name', '$teilnehmer','$norm', '$fisch','$veg','$kommen','$bemerkung')";
$eintragen = mysql_query($eintrag);
if(!empty($int)){
$intt= "INSERT INTO lions_aateilnahme (IntAntwort1) VALUES('$int')";
$eintragen = mysql_query($intt);
PHP/MySQL Help - Is this MySQL Query correct? 09/23/2011 - CO2 Programming - 1 Replies $rank = mysql_query("SELECT Name,Level,Class,Online FROM entities ORDER BY Level DESC LIMIT $limit");
I'm pretty sure that is right... whenever I do
while ($row = mysql_fetch_array($rank)) { ... }
It always gives me a mysql_fetch_array error. I've checked and the database is populated, the columns exist, so what could be the issue?
Paar Fragen, wäre cool wen ihr helft=) 08/27/2010 - Alliance of Valiant Arms - 4 Replies Hey,
Also, ich lad mir gerade das spiel runter, weils sehr interessant aussah :D jetzt würd ich gerne wissen wie das game so ist...
Waffen, sind die genau? auch im laufen und springen ? oder so wie combat arms?
wenn ich mir eine hole bleibt die forever?
sind wafffen teuer?