| От | Dan Kortschak |
|---|---|
| Тема | Re: very basic SQL question |
| Дата | |
| Msg-id | 1290544837.3857.2.camel@sol обсуждение исходный текст |
| Ответ на | Re: very basic SQL question (Matthieu Huin <matthieu.huin@wallix.com>) |
| Список | pgsql-general |
Thanks for that - yes very helpful. Good to know what is possible. Dan On Tue, 2010-11-23 at 10:27 +0100, Matthieu Huin wrote: > A similar question was discussed here about 3 weeks ago : > http://archives.postgresql.org/pgsql-general/2010-11/msg00110.php > > The "UPSERT" facility not being implemented yet, I don't think it is > possible to do much better than what you came up with. > > Assuming the column(s) holding the distinctive sequence data are defined > with the UNIQUE constraint, you could adapt the example function given > in the link to the documentation in the previous thread to achieve what > you want. > > Hope this helps, > > Matthieu
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера