|
Re: null value in date field: msg#00239db.postgresql.novice
On Tue, Feb 18, 2003 at 04:13:59PM -0500, Jeff Deroshia wrote: > 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? Yes: => create table dummy (mydate date); CREATE => insert into dummy values (null); INSERT 3397454 1 => select * from dummy; mydate -------- (1 row) You say you tried null: what was your insert? What's the table look like? --keith -- kkeller@xxxxxxxxxxxxx public key: http://wombat.san-francisco.ca.us/kkeller/kkeller.asc alt.os.linux.slackware FAQ: http://wombat.san-francisco.ca.us/cgi-bin/fom ---------------------------(end of broadcast)--------------------------- TIP 4: Don't 'kill -9' the postmaster |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Foriegn key to Union query or two tables: 00239, Bruno Wolff III |
|---|---|
| Next by Date: | Re: Importing Postgres 7.1.1 DBs into Postgres 7.3.2: 00239, Adam Bultman |
| Previous by Thread: | Re: null value in date fieldi: 00239, Jeff Deroshia |
| Next by Thread: | null value in date field: 00239, Jeff Deroshia |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |