MySQL Forums
Forum List  »  Newbie

Select Top
Posted by: Bart Schelkens
Date: April 01, 2005 03:49AM

Hi,

I'm used to writing my queries in msaccess.
There I have a query that selects my the top 10 items.

SELECT TOP 10 COUNT(Referer) AS Aantal_bezoekers, referer
FROM Log
WHERE Referer <> '/index.asp'
GROUP BY Referer

Now when I run this query in mysql, I get an error.
ERROR 1064: you have an error in your SQL syntax.

Can anyone help me?

Options: ReplyQuote


Subject
Written By
Posted
Select Top
April 01, 2005 03:49AM
April 01, 2005 07:59AM


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.