| От | Richard Broersma Jr |
|---|---|
| Тема | Re: '= NULL' is not the same as 'IS NULL' |
| Дата | |
| Msg-id | 20060906205632.30759.qmail@web31803.mail.mud.yahoo.com обсуждение исходный текст |
| Ответ на | Re: '= NULL' is not the same as 'IS NULL' (Mark Morgan Lloyd <markMLl.pgsql-odbc@telemetry.co.uk>) |
| Список | pgsql-odbc |
> I'm afraid so, in Joe Celko's "SQL for Smarties" book, after which I simply
> accepted that that was the way SQL worked.
Yes for what I recall from my reading that he mentions that there are specific reasons to allow
nulls. During Table design, if one cannot see how these specific rules apply to the data to of a
column, then the column should be constrained as NOT NULL, with a DEFAULT value as '{left blank}'
or 0 or some other value that would produce this effect.
But I am sure that this is just one particular philosophy of table design.
Regards,
Richard Broersma Jr.
В списке pgsql-odbc по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера