Re: Comparing dates in DDL

From: Rich Shepard <rshepard(at)appl-ecosys(dot)com>
To: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: Comparing dates in DDL
Date: 2019-01-04 17:32:09
Message-ID: alpine.LNX.2.20.1901040930450.29312@salmo.appl-ecosys.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Fri, 4 Jan 2019, Andreas Kretschmer wrote:

> no, you can use NULL, for instance. You don't need an explicit value.
> But maybe you want to set the start_date to NOT NULL.

Andreas,

Yes, I added NOT NULL to the start_date column.

>> 2. If so, please suggest a value for it.
>
> other solution for such 2 fields: you can use DATERANGE, only one field.

Only if all projects have a known end_date; some don't.

Thanks,

Rich

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Mark Jeffcoat 2019-01-04 17:32:41 Re: Showing table comments with psql
Previous Message Rich Shepard 2019-01-04 17:30:05 Re: Comparing dates in DDL