Anda cukup menggunakan REPLACE()
:
SELECT REPLACE(t.mobile,'+91','') as mobile
FROM YourTable t
Atau jika Anda ingin mengubahnya di database :
UPDATE YourTable t
SET t.mobile = REPLACE(t.mobile,'+91','')
Anda cukup menggunakan REPLACE()
:
SELECT REPLACE(t.mobile,'+91','') as mobile
FROM YourTable t
Atau jika Anda ingin mengubahnya di database :
UPDATE YourTable t
SET t.mobile = REPLACE(t.mobile,'+91','')