表中一个字段加一个50以内的随机数

update t_order_detail set sales= sales+FLOOR(RAND()*50) where id= '599';

posted @ 2016-10-21 18:58  小小飞侠  阅读(274)  评论(0编辑  收藏  举报