34,587
社区成员
发帖
与我相关
我的任务
分享
create table unserinfo
(phone varchar(20))
insert into unserinfo
select '15116128868' union all
select '18316128618'
select '用户电话'=stuff(phone,5,4,'****') from unserinfo
/*
用户电话
--------------------
1511****868
1831****618
(2 row(s) affected)
*/
select left(phone,3)+'****'+right(phone,3) from unserinfo