例如 在数据库中: 1个 2 3 4 5 5
我想要得到: 5 5 4 3
我用这个:
select *
from product
where price in(
select price from product group by price order by price desc limit 3
)
order by price desc
但是MySQL会响应此错误
#1235 - This version of MySQL doesn't yet support 'LIMIT & IN/ALL/ANY/SOME subquery'
还有其他方法可以做同样的事情吗?