Re: Does not MySql support "Order By" in Select Statement?

From: Date: Fri, 09 Jun 2000 17:34:22 +0000
Subject: Re: Does not MySql support "Order By" in Select Statement?
References: 1  Groups: php.db php.general 
Request: Send a blank email to php-db+get-295@lists.php.net to get a copy of this message
on 6/9/00 1:08 AM, Edward Wong at wyuanzheng@21cn.com wrote: > I installed a MySql 3.2 Alpha on Windows 2000, and connected to it within > PHP3, but every time I want to select from a table with "order by" suffix, > mySql always crashs.(eg: "select * from myTable1 order by Age"), Does not > mySql support order by? If then, what's the use of mySql? Or does it own to > PHP? MySQL does support the order by clause. If the column didn't exist you would get an error saying: Error 1054: Unknown Column 'Age' in 'order clause' So the column is there, and it should be working properly. Try perhaps SELECT * from myTable1 order by Age DESC which should switch the order around. -k

« previous php.db (#295) next »