Create (function, procedure) and trigger to increment a counter

Поиск
Список
Период
Сортировка
От Chris Barnes
Тема Create (function, procedure) and trigger to increment a counter
Дата
Msg-id BLU149-W316D7A71AC7A2E19B17CF5D4210@phx.gbl
обсуждение исходный текст
Список pgsql-general
I have a table usage, I would like to create a (function or procedure) called by the trigger to increment column counter after an update.

Can someone lend me a hand with the process behind creating this function,procedure and trigger.



               Table "public.usage"
    Column     |         Type          | Modifiers
---------------+-----------------------+-----------
 instrument    | character varying(13) |
 date          | date                  |
 counter       | integer               |




Internet Explorer 8 makes surfing easier. Get it now!

В списке pgsql-general по дате отправления:

Предыдущее
От: Florian Weimer
Дата:
Сообщение: Re: Working around spurious unique constraint errors due to SERIALIZABLE bug
Следующее
От: Yuriy Rusinov
Дата:
Сообщение: Re: Please help