标签: sql impala
如何在select语句中将+44电话号码更改为0044电话号码?
答案 0 :(得分:2)
大概+在电话号码中只出现一次,因此您可以使用replace():
+
replace()
replace(phonenumber, '+44', '0044')
答案 1 :(得分:0)
使用concat-
select concat('00', replace(phonenumber,'+','')) from tableName