在数据库中查询出地址为北京的数据,然后把这些数据的电话号码前面都加上010
假设电话号码的字段名叫phone_num
XXX是符合地址为北京的条件
update 表名 set phone_num=concat('010',phone_num) where XXX;
update table set xxx where yyy
update (select phone_num 表名 where phone_num not like '010%' ) as t set t.phone_num=concat('010',t.phone_num) ;