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

Re: [SQL] NULL DATE

From: jwieck(at)debis(dot)com (Jan Wieck)
To: michel(at)michel(dot)enter(dot)it
Cc: pgsql-sql(at)postgreSQL(dot)org
Subject: Re: [SQL] NULL DATE
Date: 1998-10-18 20:56:18
Message-ID: m0zUzsA-000EBPC@orion.SAPserv.Hamburg.dsh.de (view raw or flat)
Thread:
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(at)debis(dot)com (Jan Wieck) #


In response to

  • NULL DATE at 1998-10-18 20:28:51 from Michel \'ZioBudda\' Morelli

Responses

pgsql-sql by date

Next:From: Jan WieckDate: 1998-10-18 21:02:28
Subject: Re: [SQL] NULL DATE
Previous:From: ZioBuddaDate: 1998-10-18 20:44:12
Subject: Re: [SQL] NULL DATE

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