“test-jb-setup”
问题提出
希望将用户手机号最后4位加一个固定的字符串,生成用户的昵称
解决方案
update `tuser` set `nickname` = CONCAT("会员" , substr(`mobilephone`, 8,4)) where nickname is null or `nickname` like '会员%'
“test-jb-setup”
希望将用户手机号最后4位加一个固定的字符串,生成用户的昵称
update `tuser` set `nickname` = CONCAT("会员" , substr(`mobilephone`, 8,4)) where nickname is null or `nickname` like '会员%'