Re: phone number list

Поиск
Список
Период
Сортировка
От Adrian Holovaty
Тема Re: phone number list
Дата
Msg-id 200309101445.27160.postgres@holovaty.com
обсуждение исходный текст
Ответ на Re: phone number list  (Bryan Irvine <bryan.irvine@kingcountyjournal.com>)
Ответы Re: phone number list  (Bryan Irvine <bryan.irvine@kingcountyjournal.com>)
Re: phone number list  (Jeff Eckermann <jeff_eckermann@yahoo.com>)
Список 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 по дате отправления:

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