Brian Coleman wrote:
>
> My phone fields are broken up into 3 parts, area code, prefix and phone
> number. Each of those sections are a field in the DB, so 3 fields for a phone
> number. The fields are integer type.
Let's see how that would work with my phone number:
+31 10 75 01888 991
| | | | |
| | | | extension
| | | number
| | prefix
| area code
country code
And this is even shorter then the maximum allowed length for a
phone numer (15 digits according to ITU-T E164).
Typically I store telephone numbers in a domain with the
following definition:
CREATE DOMAIN phonenumber AS VARCHAR(20)
CHECK (VALUE LIKE '+_% _% _%');
Jochem
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking
application. Start tracking and documenting hours spent on a project or with a
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:228294
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54