| От | Mark Stosberg |
|---|---|
| Тема | how can tell if a column is a primary key? |
| Дата | |
| Msg-id | 382F925C.31358F09@summersault.com обсуждение исходный текст |
| Ответы |
Re: [SQL] how can tell if a column is a primary key?
Re: [SQL] how can tell if a column is a primary key? |
| Список | pgsql-sql |
Hello! I'm writing some perl code to access arbitrary Postgres tables. As part of this, I would like to be to tell if a given column is a primary key. Given a table and a column name, is there is a select statement I can run on the systems tables to tell me whether or not it's a primary key? Thanks. -mark -- <<-------------------------------------------------------------->> personal website < Summersault Website Design http://mark.stosberg.com/ > http://www.summersault.com/
В списке pgsql-sql по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера