trigger function with arguments from a sql command

Поиск
Список
Период
Сортировка
От Luis Silva
Тема trigger function with arguments from a sql command
Дата
Msg-id BAY18-DAV89A1EC8002779BCE6B68DB5430@phx.gbl
обсуждение исходный текст
Ответы Re: trigger function with arguments from a sql command  ("A. Kretschmer" <andreas.kretschmer@schollglas.com>)
Список pgsql-novice
hi there, i'm having a big problem. I have this table
 
 
CREATE TABLE test {
 
    id int8 NOT NULL,
    asname varchar(80) NOT NULL,
    priority int2 NOT NULL,
    serviceid,
    ...
 
    CONSTRAIN PRIMARY KEY (id),
    CONSTRAIN FOREIGN KEY (serviceid) REFERENCES service (id) MATCH FULL
}
 
and i need to make a trigger function that accept arguments insert in a INSERT INTO. The priority value must be unique for the same serviceid but it can be the same for different serviceid. how can i do that, pass the arguments of a command? tks in advance
 
 

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

Предыдущее
От: Andreas Seltenreich
Дата:
Сообщение: Re: How to see detailed plan of a funciton
Следующее
От: "A. Kretschmer"
Дата:
Сообщение: Re: trigger function with arguments from a sql command