Re: phone number list - Mailing list pgsql-novice

From Adrian Holovaty
Subject Re: phone number list
Date
Msg-id 200309101445.27160.postgres@holovaty.com
Whole thread Raw
In response to Re: phone number list  (Bryan Irvine <bryan.irvine@kingcountyjournal.com>)
Responses Re: phone number list
Re: phone number list
List pgsql-novice
Bryan Irvine wrote:
> insert into phonenumbers values (425, 888, 0773);
>
> dncl=# select * from phonenumbers;
>  areacode | prefix | suffix
> ----------+--------+--------
>  425      | 888    | 773
>
> Any ideas?  Do I need to change the format of the fields again?

Put quotes around the values you're inserting, like this:

INSERT INTO phonenumbers VALUES ('425', '888', '0773');

HTH,
Adrian

pgsql-novice by date:

Previous
From: Bryan Irvine
Date:
Subject: Re: phone number list
Next
From: Bryan Irvine
Date:
Subject: Re: phone number list