5551212
555-1212
212555-1212
212-555-1212
and makes them all
2125551212
select Concat(if(length(PhoneNumber)< 10, "212", ""), replace(PhoneNumber, "-","")) FROM AddressBook;
update addressbook set PhoneNumber=Concat(if(length(PhoneNumber)< 10, "212", ""), replace(PhoneNumber, "-",""));
No comments:
Post a Comment