Search Postgresql Archives

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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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!

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux