Re: Triggers

Поиск
Список
Период
Сортировка
Искать
От
Josh Berkus
Тема
Re: Triggers
Дата
Msg-id
web-690471@davinci.ethosmedia.com
Ответ на
Triggers (Rob)
Список
Дерево обсуждения
Triggers Rob <rob@obsidian.co.za>
Re: Triggers "Josh Berkus" <josh@agliodbs.com>
postmaster start options on RedHat 7.2 "Brian Johnson" <bjohnson@jecinc.on.ca>
Re: postmaster start options on RedHat 7.1 hodges@xprt.net
Rob,

> I have a trigger on a table called stock_count (which has a column
> barcode) which needs to update a value in a table called
>  theoretical_stock_count on either an insert,
> update or delete.  However, I need to pass the barcode of the
> inserted/updated/deleted row to the function I am calling.  Is there
>  any
> way to do this?

Within the Update or Delete trigger, the bar code of the original row
 is available as OLD.barcode.  For Update and Insert triggers, the new
 record's barcode is available as NEW.barcode.

-Josh

______AGLIO DATABASE SOLUTIONS___________________________
                                       Josh Berkus
  Complete information technology      josh@agliodbs.com
   and data management solutions       (415) 565-7293
  for law firms, small businesses        fax 621-2533
    and non-profit organizations.      San Francisco
В списке pgsql-novice по дате отправления
От: Christopher A. Goodfellow
Дата:
Сообщение: [Novice] Create Table
От: Tom Lane
Дата:
Сообщение: Re: C Function Question
FAQ