Re: Newbie: Copy from and dates

Поиск
Список
Период
Сортировка
От Martijn van Oosterhout
Тема Re: Newbie: Copy from and dates
Дата
Msg-id 20020314094329.B3439@svana.org
обсуждение исходный текст
Ответ на Newbie: Copy from and dates  (pete@gui-innovations.com (Pete Vickers))
Список pgsql-general
On Sun, Mar 10, 2002 at 12:53:48PM -0800, Pete Vickers wrote:
> Hi,
> I am trying to import a flat file into a database, where the dates may
> or may not be present. Have tried specifying the column as null, or
> default null, but if I try to import an empty date, it fails.
> Is there a way round this please

If you're using COPY, then "\N" represents a null value. You can also
specify what is a null in the copy command itself IIRC.

--
Martijn van Oosterhout <kleptog@svana.org>
http://svana.org/kleptog/
> 11/9/2001 - a new beginning or the beginning of the end?

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

Предыдущее
От: Ron Snyder
Дата:
Сообщение: Unexplainable slow down...
Следующее
От: Martijn van Oosterhout
Дата:
Сообщение: Re: NEWBIE: Date format/timestamp issue ?