update city_demo set city=(select city from city order by rand() limit1);

update city_demo set city=(select city from city order by rand() limit1);

因为使用了rand()函数,所以每一次查询的结果是不一样的,所以会产生随机的数据;