| От | Alvaro Herrera |
|---|---|
| Тема | Re: DDL with Reference on them. |
| Дата | |
| Msg-id | 20090921201239.GS29793@alvh.no-ip.org обсуждение |
| Ответ на | DDL with Reference on them. (Michael Gould <mgould@intermodalsoftwaresolutions.net>) |
| Список | pgsql-general |
Michael Gould wrote: > As you can see there are a few columns which reference back to another > table. What I need to know is how does Postgres work with these columns. > Can I insert or update a row if those columns are null or are they required > to have a non-null value in order for the row to be inserted or saved? If they are NULL, they are not checked against the other table. If you want the value to be always checked, add a NOT NULL constraint to those columns. -- Alvaro Herrera http://www.CommandPrompt.com/ PostgreSQL Replication, Consulting, Custom Development, 24x7 support
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера