update tb_name
set source
= [11, 22, 44, 66] where source
is null;
当 更新 source
这个字段的时候 咱们能让他 随机取一个值 更新;
update tb_name a set a.source=trunc(dbms_random.value(1,100)) ;dbms_random.value函数用来产生随机数,trunc取整
Mysql
update tb_name set source = (SELECT ELT(FLOOR(RAND() * 4) + 1,11,22,44,66)) where source is null;