mysql - sql syntax error while using top query -


i'm using top query table facing error

you have error in sql syntax, chekck manual corresponds mysql server version right sytntax use near '4 * sitemain order siteid desc limit 0,30' @ line 1

here code used

select top 4 * sitemain order siteid desc 

you mixing mysql , tsql syntax together. query mysql (from error message). want is

select * sitemain order siteid desc limit 0,4 

Comments

Popular posts from this blog

What can cause "Required Package 'IndyCore' not found" when compiling a Delphi 2010 project? -

Change the color of an oval at click in Java AWT -