order by
默认升序ASC,降序为DESC
按照多个字段排序
select * from cms_user order by age asc,id desc;
通过order by rand()来随机获取数据记录
select * from cms_user order by rand();
order by
默认升序ASC,降序为DESC
按照多个字段排序
select * from cms_user order by age asc,id desc;
通过order by rand()来随机获取数据记录
select * from cms_user order by rand();