Skip navigation links

MySQL Forums :: Microsoft Access :: Does MySQL know the SELECT TOP statement?


Advanced Search

Does MySQL know the SELECT TOP statement?
Posted by: Greg Covey ()
Date: December 01, 2004 07:02PM

I'm migrating from access and I've encountered a problem. Here's my SQL:

SELECT TOP 7 items.id, items.title, items.price, items.pricetype, items.shipping, cats.title, subcats.id, subcats.title, items.created, items.listtype FROM subcats RIGHT JOIN (cats RIGHT JOIN items ON cats.id = items.category) ON subcats.id = items.subcat ORDER BY items.created DESC;

and the error:

Microsoft OLE DB Provider for ODBC Drivers error '80040e14'

[MySQL][ODBC 3.51 Driver][mysqld-4.1.7-nt]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 '7 items.id, items.title, items.price, items.pricetype, items.shipping, cats.titl' at line 1

I can't find anything about the TOP keyword in the documentation. Does MySQL support it? My application is in ASP using ADO on a Windows 2000 server running IIS5. Any help would me much appreciated.

Thanks!

Options: ReplyQuote


Subject Views Written By Posted
Does MySQL know the SELECT TOP statement? 101149 Greg Covey 12/01/2004 07:02PM
Re: Does MySQL know the SELECT TOP statement? 45621 Greg Covey 12/03/2004 02:35PM
Re: Does MySQL know the SELECT TOP statement? 67249 Tal Orlik 08/25/2006 07:03AM
Re: Does MySQL know the SELECT TOP statement? 24574 Mehdi Pieloor 10/15/2006 03:14AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.