Re: Blank date field.. Help...

From: Robert Treat <xzilla(at)users(dot)sourceforge(dot)net>
To: ryan(at)fdcsmail(dot)darktech(dot)org
Cc: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Blank date field.. Help...
Date: 2002-07-17 14:00:25
Message-ID: 1026914465.21423.87.camel@camel
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Unless you have stated NOT NULL in your table definition, you should be
able to enter NULL's. If you have stated NOT NULL, you'll need to
recreate the table.

CREATE TABLE "nulldatetest" (
"withnull" date,
"withoutnull" date NOT NULL
);

INSERT INTO "nulldatetest" ("withnull", "withoutnull") VALUES (NULL,
'2002-07-17')

Robert Treat

On Wed, 2002-07-17 at 09:30, ryan(at)fdcsmail(dot)darktech(dot)org wrote:
> Hi,
> Is there any way that I can do, just to make my date columns to accept null/blank
> values? I use the latest stable version.
>
> Ryan
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Doug McNaught 2002-07-17 14:09:01 Re: dropping anonymous constraints
Previous Message Lamar Owen 2002-07-17 13:49:24 Re: Fortran functions?