1。随机拿取2条数据 这是全部数据 随机拿取由order by rand()和limit结合使用 此处使用:select * from students order by RAND() limit 2; 两次结果均不一样