| От | Tom Brown |
|---|---|
| Тема | check for primary key |
| Дата | |
| Msg-id | 1257794396.18623.415.camel@brown.esteem.com обсуждение |
| Ответы |
Re: check for primary key
Re: check for primary key |
| Список | pgsql-general |
Hey guys! I would like to know how to query for the existence of a primary key on a table. All of the tables have the column 'id' in them. That should be the primary key. However, the primary key constraint got "lost" somehow. Probably due to stupidity on my part. I just want to add back the primary key constraint to the tables that lost it. I want to query for the existance of it first, so I don't produce an error when I do an 'ALTER TABLE ...' statement. Any suggestions appreciated. Thanks! Tom
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера