Re: phone number list

Поиск
Список
Период
Сортировка
От
Тема Re: phone number list
Дата
Msg-id Pine.A41.3.95.1030910111451.19494E-100000@fn2.freenet.edmonton.ab.ca
обсуждение исходный текст
Ответ на phone number list  (Bryan Irvine <bryan.irvine@kingcountyjournal.com>)
Список 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 по дате отправления:

Предыдущее
От: Bryan Irvine
Дата:
Сообщение: how many records
Следующее
От: "Louise Cofield"
Дата:
Сообщение: Re: phone number list