mysql 随机数 ww111 · 2013-11-28 22:37 · linux mysql · 数据库 · Markdown FLOOR(i + RAND() * (j – i + 1)) 若要在7 到 12 : SELECT FLOOR(7 + (RAND() * 6));