将+44转换为0044电话号码

时间:2019-02-20 01:32:12

标签: sql impala

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

2 个答案:

答案 0 :(得分:2)

大概+在电话号码中只出现一次,因此您可以使用replace()

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

答案 1 :(得分:0)

使用concat-

select concat('00', replace(phonenumber,'+','')) from tableName