select * from (SELECT * FROM xxx order by xxx desc limit 30) t order by rand() limit 5
SQL可以做到,只是真心不高效 SQL code?1select * from (SELECT * FROM xxx order by xxx desc limit 30) t order by rand()