給數據表 的指定字段 修改隨機字段範圍1-5 1<= 範圍 <=5
update 數據表 set 字段 =update bbb set job_id= floor(1 + rand()*2);
update bbb set job_id= floor(1 + rand()*5);
給數據表 的指定字段 修改隨機字段範圍1-5 1<= 範圍 <=5
update 數據表 set 字段 =update bbb set job_id= floor(1 + rand()*2);
update bbb set job_id= floor(1 + rand()*5);