求一sql语句的写法我需要在留言表中查询最新的30条留言,然后这30条还要随机显示。 ------解决方案--------------------补充一下,就可以了 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()