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 -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -