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 -

What is happening when Matlab is starting a "parallel pool"? -

php - Cannot override Laravel Spark authentication with own implementation -