Re: [SQL] NULL DATE
| От | jwieck@debis.com (Jan Wieck) |
|---|---|
| Тема | Re: [SQL] NULL DATE |
| Дата | |
| Msg-id | m0zUzsA-000EBPC@orion.SAPserv.Hamburg.dsh.de обсуждение исходный текст |
| Ответ на | NULL DATE ("Michel \\'ZioBudda\\' Morelli" <michel@michel.enter.it>) |
| Ответы |
Re: [SQL] NULL DATE
|
| Список | 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 по дате отправления: