| От | Dan Weeks |
|---|---|
| Тема | Re: silly NULL question |
| Дата | |
| Msg-id | 16160.27713.892311.733277@underdog.wildbrain.com обсуждение |
| Ответ на | Re: silly NULL question (Rod Taylor <rbt@rbt.ca>) |
| Список | pgsql-sql |
>>>>> "RT" == "Rod Taylor" <rbt@rbt.ca>: RT> NULL is similar to UNKNOWN. RT> RT> So, NULL = NULL is the similar to UNKNOWN = UNKNOWN. Since you don't RT> know it, how can you tell if they're equal or not? RT> RT> Syntax you're looking for is: AND parent_id IS NULL ah, of course. Thanks Rod. RT> If you really really really need = NULL (due to some MS product which RT> ignores SQL standards -- say MS Access) there is a toggle in the RT> postgresql.conf file to allow automated conversion of = NULL to IS NULL RT> within the server. ah ha! the culprit. I see this was default through 7.1. Thanks again for accurate and quick reply. -dan
В списке pgsql-sql по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера