Re: importing db as text files

Поиск
Список
Период
Сортировка
От Stephan Szabo
Тема Re: importing db as text files
Дата
Msg-id 20030815002727.Q9630-100000@megazone.bigpanda.com
обсуждение исходный текст
Ответ на Re: importing db as text files  (expect <expect@ihubbell.com>)
Ответы Re: importing db as text files  (expect <expect@ihubbell.com>)
Список pgsql-general
On Thu, 14 Aug 2003, expect wrote:

> On Thu, 14 Aug 2003 12:46:07 -0500
> Bruno Wolff III <bruno@wolff.to> wrote:
> > Note that it isn't obvious what empty strings should map to for numbers.
> > NULL and 0 make about as much sense as using the default value.
>
> Well I'm new here but it seems to me they should map to the default value
> for that column.   Why wouldn't they?

One problem with doing that is that it's inconsistent.

Given
create table test(
 a text default 'abc',
 b int default 5
);

copy test from stdin with delimiter ',';
,
\.

What would you expect the values of the row in test
to be?


В списке pgsql-general по дате отправления:

Предыдущее
От: expect
Дата:
Сообщение: Re: Why the duplicate messages to pgsql-general?
Следующее
От: expect
Дата:
Сообщение: Re: importing db as text files