SELECT REPLACE(col1,LEFT(col1,1),'_') FROM dbo.a
假设你的字符串在变量a里select lpad('_',length(:a)-length(ltrim(:a)),'_')||ltrim(:a) from dual;