Re: phone number list - Mailing list pgsql-novice

From
Subject Re: phone number list
Date
Msg-id Pine.A41.3.95.1030910111451.19494E-100000@fn2.freenet.edmonton.ab.ca
Whole thread Raw
In response to phone number list  (Bryan Irvine <bryan.irvine@kingcountyjournal.com>)
List pgsql-novice
On 10 Sep 2003, Bryan Irvine wrote:

> I have a db that contains phone numbers
>
> The data that get inserted looks like this
>
> 425 555 1212
>
> I have a script that inserts that into the DB, the problem is that
> sometimes the suffix might start with a 0 and is getting truncated.
>
> so
>
> 425 555 0212
>
> ends up being
>
> 425 555  212.  How can I fix this?

You are using a numerical field (or fields) for the number,
when you should be using a string.  For one thing, the 123-4567
or 123-456-7890 numbers are not universal.  The actual format
of the number depends on the locality.

Gord



pgsql-novice by date:

Previous
From: Bryan Irvine
Date:
Subject: how many records
Next
From: "Louise Cofield"
Date:
Subject: Re: phone number list