Re: Valid Input Syntax for Type DATE

Поиск
Список
Период
Сортировка
От Andy Colson
Тема Re: Valid Input Syntax for Type DATE
Дата
Msg-id 4F4E6E3A.3020503@squeakycode.net
обсуждение исходный текст
Ответ на Valid Input Syntax for Type DATE  (Rich Shepard <rshepard@appl-ecosys.com>)
Ответы Re: Valid Input Syntax for Type DATE
Список pgsql-general
On 2/29/2012 11:49 AM, Rich Shepard wrote:
> I'm trying to insert rows into a table, but some date and time columns are
> missing values. In the INSERT INTO ... statements of the .sql file I've
> tried various formats: ,, and ,'', and ,' ', but they all generate the
> error
> of invalid syntax for type date.
>
> When I have missing date of the date and time types, how do I validly
> represent them in the input file?
>
> Rich
>
>
>

If the column is null'able, I think you can use the keyword: DEFAULT

insert into(id, xdate) values (1, DEFAULT);

Not 100%, but I think so.

-Andy

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

Предыдущее
От: dennis jenkins
Дата:
Сообщение: Re: accumulating handles problem on machine running postgresql
Следующее
От: Andy Colson
Дата:
Сообщение: Re: Valid Input Syntax for Type DATE