SELECT * FROM table_name ORDER BY rand() LIMIT 5;
用表达式咋写呢 ? Cnd.??
首先,严重不建议用rand
然后,可以这样写
Cnd.where(new Static("1=1 order by.rand()"))