|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
Order by and RowNo
From: Dusan Kolesar (dusankolesar
szm.sk)
Date: Fri Jan 30 2004 - 05:51:14 CST
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hello,
I want to get one record from :
SELECT * FROM table ORDER BY col.
When I add WHERE rowno<=1 :
SELECT * FROM table WHERE WHERE rowno<=1 ORDER BY col
the select result is restricted first and ordered at last.
I also tryed :
SELECT * FROM (SELECT * FROM table ORDER BY col) WHERE rowno<=1
but I obtained an error:
Missing delimiter: ) and there was "ORDER" highlighted.
Thanks for any idea,
Dusan
--
Dusan Kolesar
Helsinska 19
040 13 Kosice
Slovakia
e-mail : dusankolesar
szm.sk
ICQ# : 160507424
--
MaxDB Discussion Mailing List
For list archives: http://lists.mysql.com/maxdb
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]