Skip site navigation (1) Skip section navigation (2)

null value in date field

From: Jeff Deroshia <jeff(at)hal(dot)physast(dot)uga(dot)edu>
To: pgsql-novice(at)postgresql(dot)org
Subject: null value in date field
Date: 2003-02-18 20:01:29
Message-ID: (view raw or whole thread)
Lists: pgsql-novice
I have a form that contains optional DATE fields.  To enter null 
values, I've tried null, 'null', '', '-', '0', 0, and each time I get 
one of the following errors:

ERROR:  Bad numeric input format ''

ERROR:  Bad date external representation ''

Is there a correct way to enter null values into DATE fields?

Jeff Deroshia

pgsql-novice by date

Next:From: Jeff DeroshiaDate: 2003-02-18 21:13:59
Subject: null value in date field
Previous:From: Steve_MillerDate: 2003-02-18 15:51:27
Subject: Re: Multiple Return Values?

Privacy Policy | About PostgreSQL
Copyright © 1996-2015 The PostgreSQL Global Development Group