Quantcast
Channel: dBforums – Everything on Databases, Design, Developers and Administrators
Viewing all articles
Browse latest Browse all 13329

formatting phone number data

$
0
0
I have a phone number field in my database. It's a text field, no input mask in the table itself. There is an input mask in the form that's used to enter data.

Some of the phone numbers were dumped into the database and are formatted like this:
1234567890

The rest of the phone numbers were formatted like this and are being entered like this:
(123) 456-7890

I want all of the numbers to be stored the second way. How do I convert the formatting of the numbers in the first example to the formatting of the second example (in the table) so that the formatting is uniform?

Viewing all articles
Browse latest Browse all 13329

Trending Articles