rules

Поиск
Список
Период
Сортировка
От Martín Marqués
Тема rules
Дата
Msg-id 01042617214801.04659@bugs
обсуждение исходный текст
Ответы Re: rules
Re: rules
Список pgsql-sql
Is it posible to make a rule execute more then one query?

Something like:

CREATE RULE rule_name AS ON INSERT TO table1
DO INSTEAD
INSERT INTO table2 VALUES
(new.value1,new.value2)
INSERT INTO table3 VALUES
(x,y)

If not, is there a way to do this? Triggers maybe?

Saludos... :-)

-- 
El mejor sistema operativo es aquel que te da de comer.
Cuida tu dieta.
-----------------------------------------------------------------
Martin Marques                  |        mmarques@unl.edu.ar
Programador, Administrador      |       Centro de Telematica                      Universidad Nacional
        del Litoral
 
-----------------------------------------------------------------


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