Search Postgresql Archives

Re: Comparing dates in DDL

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

 




On 1/4/19 10:26 AM, Rich Shepard wrote:
On Fri, 4 Jan 2019, Rob Sargent wrote:

Is the end_date always knowable at record insert?

Rob,

  Not always. Sometimes projects have known end dates, other times the end
is interminate until it happens.

CHECK(end_date is null or start_date <= end_date)

  So a default of NULL should be applied, or just allowed to happen?

Thanks,

Rich

This is exactly what null is for.  Much preferable to some arbitrary value which will confuse analyses.




[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