phpbar.de logo

Mailinglisten-Archive

[php] MySQL: order by

[php] MySQL: order by

Michael Koch mkoch_(at)_bremen-ports.de
Fri, 23 Feb 2001 10:29:38 +0100


Am Fre, 23 Feb 2001 schrieben Sie:
> Hallo, was stimmt an der Abfrage unten nicht? Gruss MAREK.
> 
> Error
> SQL-query:
> 
> >SELECT id,head,body from home where order by id desc;
> 
> MySQL said: You have an error in your SQL syntax near 'order by id
> desc;' at line 1

In der WHERE-Klausel steht nix drin. Lass mal das WHERE weg, dann müsste es
funzen.

SELECT id,head,body from home order by id desc;



Gruss Michael

-- 
KDE - fan, enthusiast and developer
koch_(at)_kde.org, http://www.kde.org


php::bar PHP Wiki   -   Listenarchive