mysql给定一个随机数

update cnmat_video set hits=FLOOR(1 + (RAND() * 50)) 给定一个1-50中间的随机数

 

posted @ 2016-04-15 14:36  YGCool  阅读(268)  评论(0编辑  收藏  举报