| От | Doug McNaught |
|---|---|
| Тема | Re: SQL-question: returning the id of an insert querry |
| Дата | |
| Msg-id | 878ymlwc8x.fsf@asmodeus.mcnaught.org обсуждение исходный текст |
| Ответ на | Re: SQL-question: returning the id of an insert querry ("David Green" <david@sagerobot.com>) |
| Ответы |
Re: SQL-question: returning the id of an insert querry
|
| Список | pgsql-general |
Scott Chapman <scott_list@mischko.com> writes: > What's the process to suggest changes to PG along these lines? Say, a > proposal to make it configurable for a user to have a INSERT return the > primary key that it just inserted rather than what it returns now? What if you have a multicolumn PK? I'm not actually sure PG keeps track of "primary keyness" -- I think it translates a PRIMARY KEY constraint into NOT NULL UNIQUE when the table is created. So it might be really hard to implement your feature, even if you can figure out what should happen for multicolumn PKs. -Doug
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера