Updating datetime fields with NULL values

Поиск
Список
Период
Сортировка
От Gary MacMinn
Тема Updating datetime fields with NULL values
Дата
Msg-id s832757b.009@syd_aux.nca.gov.au
обсуждение исходный текст
Список pgsql-sql
Morning All,

Is it possible to clear a datetime field to NULL? If so, how? In trying an update (update test set d1='' where
t1='Text2';)I get an error of Bad datetime external representation ''
 

TIA,
Gary MacMinn
===============================================
Table    = test
+----------------------------------+----------------------------------+-------+
|              Field               |              Type                | Length|
+----------------------------------+----------------------------------+-------+
| t1                               | text                             |   var |
| d1                               | datetime                         |     8 |
+----------------------------------+----------------------------------+-------+



В списке pgsql-sql по дате отправления:

Предыдущее
От: wieck@debis.com (Jan Wieck)
Дата:
Сообщение: Re: [SQL] NULL
Следующее
От: John Ziniti
Дата:
Сообщение: Re: [SQL] Updating datetime fields with NULL values