Re: null value of type java.sql.Time

From: "Net Virtual Mailing Lists" <mailinglists(at)net-virtual(dot)com>
To: <pgsql-general(at)postgresql(dot)org>
Subject: Re: null value of type java.sql.Time
Date: 2004-11-23 10:41:49
Message-ID: 20041123104149.11363@mail.net-virtual.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Try:

select * from event where game_clock IS NULL

- Greg

>Occasionally I want to store a null value for my java.sql.Time--> Time
>column in Postgresql.
>update event set game_clock=null where event_id=1;
>
> I can retreive the record with the null value (type Time) if I select
>on the primary key,
> select game_clock from event where event_id = 1;
>
>but when I try to select on the null column value, I get zero records.
> select * from event where game_clock=null;
>
>How can I retreive records with null values for a column?
>thanks,
>Phil

Browse pgsql-general by date

  From Date Subject
Next Message Woodchuck Bill 2004-11-23 10:43:18 Re: Google (was RFD: comp.databases.postgresql.*)
Previous Message Net Virtual Mailing Lists 2004-11-23 10:33:36 Lexical question...