mysql mybatis 取得查询结果中随机的一条数据 思路:首先写自己想要的查询的结果集 SELECT a.id as id, a.type as type, a.content as content FROM autoadd as a WHERE a.type = 1随机 + 一条 也就是先打乱查询顺序再选一条使用 ORDER BY ... Mysql 2023-12-11 50 点赞 0 评论 75 浏览