日期:2014-05-18 浏览次数:20447 次
create table tt as select '20,30,40' as t from dual ; select t,substr(t1,0,instr(t1,',')-1)*10 as t1 from( select t,substr(t,instr(t,',')+1) as t1 from tt); drop table tt; /* T T1 20,30,40 300 */
------解决方案--------------------
update table set field2 = 100*TO_NUMBER(substr(field1,instr(field1,',')+1,instr(field1,',',1,2)-instr(field1,',')-1))
------解决方案--------------------