mysql subquery limit alternative -


i want select distinct last 200 record. have wrote query this

select    distinct(server_ip)      resource_monitor  server_ip in     (select server_ip resource_monitor order id desc limit 0, 200     ) 

but show me error

this version of mysql doesn't yet support 'limit & in/all/any/some subquery' 

what alternative of query?

select distinct t1.server_ip (select server_ip resource_monitor order id desc limit 200) t1; 

Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

reflection - How to access the object-members of an object declaration in kotlin -

php - Doctrine Query Builder Error on Join: [Syntax Error] line 0, col 87: Error: Expected Literal, got 'JOIN' -