将+44转换为0044电话号码

问题描述 投票:-2回答:2

如何在select语句中将+44电话号码更改为0044电话号码?

sql impala
2个回答
2
投票

据推测,+只在电话号码中出现一次,所以你可以使用replace()

replace(phonenumber, '+44', '0044')

0
投票

使用concat -

select concat('00', replace(phonenumber,'+','')) from tableName
© www.soinside.com 2019 - 2024. All rights reserved.