1.重复性排序 select count(*) a,b from talble group BY b having count(*)>1 order BY a desc 2.产生随机 SELECT * FROM table ORDER BY RANDOM()FOR ORDERBY_NUM()=1