将字段转换为阿拉伯数字

select to_number( regexp_substr(
replace(
replace(
replace(
replace(
replace(
replace(
replace(
replace(
replace(
replace(t.gridname,'一','1')
,'二','2')
,'三','3')
,'四','4')
,'五','5')
,'六','6')
,'七','7')
,'八','8')
,'九','9')
,'十','10')
,'[0-9]+'))

posted @ 2018-03-21 15:11  马艳泽  阅读(134)  评论(0编辑  收藏  举报