Re: Should we consider empty fields as NULL values when

Поиск
Список
Период
Сортировка
От Doug McNaught
Тема Re: Should we consider empty fields as NULL values when
Дата
Msg-id 87he07qudy.fsf@asmodeus.mcnaught.org
обсуждение исходный текст
Ответ на Should we consider empty fields as NULL values when dealing with string columns ?  ("Nagib Abi Fadel" <nagib.abi-fadel@usj.edu.lb>)
Список pgsql-general
"Nagib Abi Fadel" <nagib.abi-fadel@usj.edu.lb> writes:

>    The issue is that since the column col1 is defined as character with
>    not null attribute,
>
>    shouldn't we deny such inserts (i mean inserting empty fields)???

NULL and the empty string '' are *completely* different things.  If
you want to disallow empty strings as well as NULL, use a CHECK
constraint on that column.

-Doug

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

Предыдущее
От: Adrian Klaver
Дата:
Сообщение: Re: Storing Snapshot Data
Следующее
От: Greenwich Support
Дата:
Сообщение: Weird Problem With PostgreSQL 7.3.1 and VB.Net Datagrid