select *from tableorder by rand()limit 10 中间的where再根据条件写就行了
高效??先随即rand id 用php之后 in ()这样会不会高效点!如果海量数据的话