mysql给定一个随机数

update cnmat_video set hits=FLOOR(1 + (RAND() * 50)) 给定一个1-50中间的随机数
原文地址:https://www.cnblogs.com/ygcool/p/5395423.html