mysql> SELECT * FROM table1, table2 WHERE a=b AND c<d -> ORDER BY RAND() LIMIT 1000; 每执行一次where,rand()就执行一次,以便形成随机过程