| От | Tom Lane |
|---|---|
| Тема | Re: [SQL] null and integer field |
| Дата | |
| Msg-id | 18901.948334809@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | null and integer field ("Hamid Khoshnevis" <hamid@emarq.com>) |
| Список | pgsql-sql |
"Hamid Khoshnevis" <hamid@emarq.com> writes:
> The content of an integer field when unassigned appears to be different from
> pushing a null into that field. Can someone please explain the difference
> and show me how to push an 'unassigned' into that integer field.
There is no such concept as 'unassigned' in SQL; whatever you are
observing, it's not that. An integer field should indeed be NULL
if it hasn't got a default and you didn't provide a value when you
inserted the tuple.
Can you provide more details about the problem you're having?
regards, tom lane
В списке pgsql-sql по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера