mysql给定一个随机数

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

 

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