mysql给现有表每行数据赋予随机值

update talbe set field = rand() limit 5;

使用后,会针对每行数据执行rand()函数。

原文地址:https://www.cnblogs.com/supermarx/p/14145276.html