mysql--返回一个数字n,使得 a<=n<=b

SELECT FLOOR(a + RAND() * (b - a + 1));

 

posted @ 2020-07-13 23:31  lishidefengchen  阅读(245)  评论(0)    收藏  举报