Re: phone number list - Mailing list pgsql-novice

From Louise Cofield
Subject Re: phone number list
Date
Msg-id 000b01c377c0$b3556490$7801a8c0@Louise
Whole thread Raw
In response to phone number list  (Bryan Irvine <bryan.irvine@kingcountyjournal.com>)
List pgsql-novice
Make the fields varchar, rather than numeric.
-Louise

-----Original Message-----
From: pgsql-novice-owner@postgresql.org
[mailto:pgsql-novice-owner@postgresql.org] On Behalf Of Bryan Irvine
Sent: Wednesday, September 10, 2003 9:35 AM
To: pgsql-novice@postgresql.org
Subject: [NOVICE] phone number list

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?

--Bryan


---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?

               http://www.postgresql.org/docs/faqs/FAQ.html


pgsql-novice by date:

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