Re: phone number list - Mailing list pgsql-novice

From Oliver Elphick
Subject Re: phone number list
Date
Msg-id 1063215297.5248.125.camel@linda.lfix.co.uk
Whole thread Raw
In response to phone number list  (Bryan Irvine <bryan.irvine@kingcountyjournal.com>)
Responses Re: phone number list
List pgsql-novice
On Wed, 2003-09-10 at 16:35, 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?

It sounds as though you are storing the numbers in numeric fields, in
which case store them in text fields instead.

But you need to give much better information if you seriously want
assistance.  That is, you need to show us the table structure and the
commands by which you insert a row in that table.

--
Oliver Elphick                                Oliver.Elphick@lfix.co.uk
Isle of Wight, UK                             http://www.lfix.co.uk/oliver
GPG: 1024D/3E1D0C1C: CA12 09E0 E8D5 8870 5839  932A 614D 4C34 3E1D 0C1C
                 ========================================
     "Draw near to God and he will draw near to you.
      Cleanse your hands, you sinners; and purify your
      hearts, you double minded."       James 4:8


pgsql-novice by date:

Previous
From: Simon Willison
Date:
Subject: Re: how many records
Next
From: Oliver Elphick
Date:
Subject: Re: how many records