标签: sql
如何从表中获得前3个最高值和前2个最低值?
答案 0 :(得分:2)
SELECT * FROM table ORDER BY value DESC LIMIT 3; //Highest SELECT * FROM table ORDER BY value ASC LIMIT 2; //Lowest
下次谷歌第一次。
more on this link