Re: Stored Procedure Record Updates using For Loops - Postgres 8.1
В списке pgsql-general по дате отправления:
| От | Adrian Klaver |
|---|---|
| Тема | Re: Stored Procedure Record Updates using For Loops - Postgres 8.1 |
| Дата | |
| Msg-id | 201202281247.41643.adrian.klaver@gmail.com обсуждение исходный текст |
| Ответ на | Re: Stored Procedure Record Updates using For Loops - Postgres 8.1 ("Lummis, Patrick J" <PJL@dolby.com>) |
| Ответы |
Re: Stored Procedure Record Updates using For Loops - Postgres 8.1
|
| Список | pgsql-general |
On Tuesday, February 28, 2012 12:35:58 pm Lummis, Patrick J wrote: > Hi Bartek, > > Thanks for the quick response. > > Syntax error cleared up and loads fine but executing the stored > procedure fails to update the row. From the usage I guessing this function is not being used in a trigger. As such the ROW variable exists outside the table. If you want to UPDATE the table you are going to have to do a hybrid of what you have: update workorder set wfstatus='failed' where id=workorderRecord.id assuming there is an 'id' field of some sort. > > Regards, > > Patrick -- Adrian Klaver adrian.klaver@gmail.com
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера