//130****8815 select REPLACE(contno,SUBSTR(contno,4,4), '****') as contno from lccont a WHERE a.contno = '13003038815';