--oracle替换指定范围的字符串(范围4-6) select substr('123456789', 1, 3) || '***' || SUBSTR('123456789', 7) from dual; --结果:123***789