From: jwieck@debis.com
To: michel@michel.enter.it
Cc: pgsql-sql@postgreSQL.org
Subject: Re: [SQL] NULL DATE
Date: Sun, 18 Oct 1998 22:56:18 +0200 (MET DST)
Message-ID: <m0zUzsA-000EBPC@orion.SAPserv.Hamburg.dsh.de> (raw)
In-Reply-To: <Pine.LNX.3.96.981018215243.980A-100000@localhost>
>
> 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) #
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: jwieck@debis.com, michel@michel.enter.it
Subject: Re: [SQL] NULL DATE
In-Reply-To: <m0zUzsA-000EBPC@orion.SAPserv.Hamburg.dsh.de>
References: <Pine.LNX.3.96.981018215243.980A-100000@localhost> <m0zUzsA-000EBPC@orion.SAPserv.Hamburg.dsh.de>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox