Re: [SQL] NULL DATE

Jan Wieck <jwieck@debis.com>

From: jwieck@debis.com (Jan Wieck)
To: michel@michel.enter.it
Cc: pgsql-sql@postgreSQL.org
Date: 1998-10-18T20:56:18Z
Lists: 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) #