| От | |
|---|---|
| Тема | Re: How to tell if that UPDATE worked? |
| Дата | |
| Msg-id | 20010112042059.2586.qmail@mailhost.sidereal.kz обсуждение |
| Ответ на | Re: How to tell if that UPDATE worked? (Jan Wieck <janwieck@Yahoo.com>) |
| Список | pgsql-general |
> Do a > > GET DIAGNOSTICS SELECT PROCESSED INTO <int4_variable>; > > directly after an INSERT, UPDATE or DELETE statement and > you'll know how many rows have been hit. > > Also you can get the OID of an inserted row with > > GET DIAGNOSTICS SELECT RESULT INTO <int4_variable>; Thanks for the tip. That is exactly what I needed. plpgsql is a painful language in many ways, but it is also very straightforward, so I'm writing the bulk of my project in it. > Er - is this another added feature where we're still lacking > documentation? As pointed out by Tom in a subsequent email, there is one cryptic line in there, which is probably why I overlooked it... Thanks for your help
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера