Search Postgresql Archives

Re: Valid Input Syntax for Type DATE

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


--
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux