| От | Peter Gibbs |
|---|---|
| Тема | Re: repost of how to do select in a constraint |
| Дата | |
| Msg-id | 000f01c2c1dd$2362b5c0$0b01010a@emkel.co.za обсуждение |
| Ответ на | Re: repost of how to do select in a constraint (Dennis Gearon <gearond@cvc.net>) |
| Ответы |
Re: repost of how to do select in a constraint
|
| Список | pgsql-general |
Dennis Gearon wrote: > Can I reference a function in a column check constraint, when the function doesn't yet exist, > i.e. a the time of table creation? > > Or is it better to make the table, create the function, then alter table with a check > constraint? The function has to exist before the constraint is created. If the function depends on the table that will have the constraint, you will need to add the constraint afterwards; however, if the function only depends on other tables, then you can create the function before creating the table. -- Peter Gibbs EmKel Systems
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера