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

PHPMotion implementation - URL based videos (Hosted on separate location) -

javascript - Using Windows Media Player as video fallback for video tag -

c# - Unity IoC Lifetime per HttpRequest for UserStore -