给t_user_info表中符合条件的uin字段加上一个guest_的字符串:
update t_user_info set uin = concat('guest_', uin) where uin >100;
如果是某一个字段删除一部分字符串则使用下面的语句:
update t_user_info set uin=replace(uin,'guest_','');
给t_user_info表中符合条件的uin字段加上一个guest_的字符串:
update t_user_info set uin = concat('guest_', uin) where uin >100;
如果是某一个字段删除一部分字符串则使用下面的语句:
update t_user_info set uin=replace(uin,'guest_','');