Re: [SQL] NULL DATE - Mailing list pgsql-sql

From jwieck@debis.com (Jan Wieck)
Subject Re: [SQL] NULL DATE
Date
Msg-id m0zUzsA-000EBPC@orion.SAPserv.Hamburg.dsh.de
Whole thread Raw
In response to NULL DATE  ("Michel \\'ZioBudda\\' Morelli" <michel@michel.enter.it>)
Responses Re: [SQL] NULL DATE  (ZioBudda <michel@michel.enter.it>)
List pgsql-sql
>
> Hi, I have a item in a table that is a "date". I want to insert a null
> value in this item. How can I make it ? Is it possible ?

    CREATE TABLE mytab (a int4, b text, c date);

    -- attribute a will have NULL value
    INSERT INTO mytab (b, c) VALUES ('something', 'now');

    -- attribute b will have NULL value
    INSERT INTO mytab (a, c) VALUES (2, 'now');

    -- attribute c will have NULL value
    INSERT INTO mytab (a, b) VALUES (3, 'something else');


Jan

--

#======================================================================#
# It's easier to get forgiveness for being wrong than for being right. #
# Let's break this rule - forgive me.                                  #
#======================================== jwieck@debis.com (Jan Wieck) #

pgsql-sql by date:

Previous
From: "Michel \\'ZioBudda\\' Morelli"
Date:
Subject: NULL DATE
Next
From: ZioBudda
Date:
Subject: Re: [SQL] NULL DATE