Re: Valid Input Syntax for Type DATE - Mailing list pgsql-general

From Rich Shepard
Subject Re: Valid Input Syntax for Type DATE
Date
Msg-id alpine.LNX.2.00.1202291341190.15032@salmo.appl-ecosys.com
Whole thread Raw
In response to Re: Valid Input Syntax for Type DATE  (Andrew Gould <andrewlylegould@gmail.com>)
List pgsql-general
On Wed, 29 Feb 2012, Andrew Gould wrote:

>>> If the column is null'able, I think you can use the keyword: DEFAULT
>>> insert into(id, xdate) values (1, DEFAULT);

>> Or... use NULL:
>> insert into(id, xdate) values (1, NULL);

> NULL works, but one advantage of using DEFAULT is that you won't have to
> worry which columns are set to NOT NULL.  This assumes that the NOT NULL
> columns have default values assigned to them, which is a good idea.

   Thank you both.

Rich


pgsql-general by date:

Previous
From: Ben Chobot
Date:
Subject: Re: Re: One transaction by connection - commit subdetails without release master transaction?
Next
From: Alban Hertroys
Date:
Subject: Re: Re: One transaction by connection - commit subdetails without release master transaction?