| От | Merrill Oveson |
|---|---|
| Тема | [Fwd: [Fwd: named constraints]] |
| Дата | |
| Msg-id | 39CFB04B.FF2E063C@actiontarget.com обсуждение исходный текст |
| Ответы |
Re: [Fwd: [Fwd: named constraints]]
|
| Список | pgsql-bugs |
All:
I have the following table:
create table try (
ordnum int4 primary key,
type char(3),
CONSTRAINT type_check CHECK(type in ('bid', 'ord', 'rma'))
);
The named constraint works find here.
However when I do:
> psql ati -c "alter table try drop constraint type_check"
I get:ERROR: parser: parse error at or near ""
Am I missing something here?
What I'd really like to do is have constraints that are "outside"
the table definition, that way I could add and drop constraints
without having to dump the data out, rebuild the schema
and re-import the data back in. Is this possible?
В списке pgsql-bugs по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера