2017-08-18 45 views

回答

0
declare @val varchar(max) = 'Testabc123xyz32dfghj' 
declare @num1 as int 
set @num1=0 

while @num1<10 
begin 
    set @val=REPLACE(@val,cast(@num1 as varchar),'') 
    set @[email protected]+1 
end 
print UPPER(@val) 
+0

這不是甲骨文。 –

0

使用此功能: -

regexp_replace('Testabc123xyz32dfghj', '[0-9]', '') 
1

技術上你想這樣的:

select upper(regexp_replace('Testabc123xyz32dfghj', '\d')) from dual; 
0
select upper(regexp_replace('Testabc123xyz32dfghj', '\d')) from dual;