mysql生成0到9随机数

SELECT FLOOR(RAND()*10);

原文地址:https://www.cnblogs.com/hougebajie/p/8391516.html