Re: Triggers: using table's primary key value to update another field

Поиск
Список
Период
Сортировка
От Qingqing Zhou
Тема Re: Triggers: using table's primary key value to update another field
Дата
Msg-id d2gvli$16f7$1@news.hub.org
обсуждение исходный текст
Ответ на Triggers: using table's primary key value to update another field  (Randall Perry <rgp@systame.com>)
Список pgsql-general
"Randall Perry" <rgp@systame.com> writes
> What I'm having trouble with is figuring out how to grab the primary key
> value of the current row. I tried tacking on a var with the pkey row name
to
> NEW, but that doesn't work (didn't think it would).

There is an example in PG docs.

http://www.postgresql.org/docs/8.0/static/trigger-example.html

Regards,
Qingqing



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

Предыдущее
От: "Qingqing Zhou"
Дата:
Сообщение: Re: truncate/create slowness
Следующее
От: "Qingqing Zhou"
Дата:
Сообщение: Re: Postgres Processing Help !!!!