mysql给数据库表里某个字段赋随机值

UPDATE sxz_goods set sales_volume_base = round(rand() * 50) + 1 where sales_volume_base =0 ORDER BY goods_id ASC

 

posted @ 2015-07-24 00:36  求必印  阅读(1558)  评论(0编辑  收藏  举报