Supportnet Computer
Planet of Tech

Supportnet / Forum / Skripte(PHP,ASP,Perl...)

MYSQL Abfrage 5 -> 4





Frage

Unter Mysql5 läuft meine Abfrage perfekt. Unter Mysql4 erhalte ich folgende Fehlermeldung [code] MySQL meldet: Dokumentation #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 'SELECT f_id , f_name , f_update , f_time FROM hp_crew_fil [/code] Die Abfrage soll eigentlich nur alle Verschiedenen f_name mit neustem f_time und f_update ausgeben. Was muß ich ändern, damit dia Abfrage auch unter Mysql4 funktionert??? [code] SELECT a.f_id, a.f_name, UNIX_TIMESTAMP(a.f_time) as f_time, a.f_update FROM ( SELECT f_id, f_name, f_update, f_time FROM hp_crew_files ) as a, ( SELECT f_id, f_name, MAX(f_time) as f_time, f_update FROM hp_crew_files GROUP BY f_name ) as b WHERE a.f_time = b.f_time AND a.f_name = b.f_name ORDER BY a.f_time DESC [/code] Danke schonmal im Vorraus für eure Hilfe

Antwort von



Ich möchte kostenlos eine Frage an die Mitglieder stellen:


Ähnliche Themen:


Suche in allen vorhandenen Beiträgen: