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
Post a Comment