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 -

Python Tornado package error when running server -

Qt QGraphicsScene is not accessable from QGraphicsView (on Qt 5.6.1) -