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

c# - Unity IoC Lifetime per HttpRequest for UserStore -

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

I am trying to solve the error message 'incompatible ranks 0 and 1 in assignment' in a fortran 95 program. -