substr()截取和拼接字符串(oracle)

select

      --手机显示前八位,后几位以*显示

      substr(c.mobile,1,8)||'***' as mobile, 

      --通讯地址(后五码以*****显示)

      c.province||c.city||substr(c.address,length(c.address)-5+1,5)||'*****' as addr 

from customer c

猜你喜欢

转载自yiwozhifeng.iteye.com/blog/1995101
今日推荐