2 Aktions in a Rule - Mailing list pgsql-sql

From Florian Makesch
Subject 2 Aktions in a Rule
Date
Msg-id 99100510500800.05539@pinguin
Whole thread Raw
Responses RE: [SQL] 2 Aktions in a Rule
Re: [SQL] 2 Aktions in a Rule
List pgsql-sql
Hello,
I hope someone can help me. I Want 2 Aktions executeed in a Rule like:
CREATE RULE auftraege_neu_delete AS ON delete    TO auftraege_neu DO         (DELETE FROM auftraege_neu_positionen
WHEREauftraege_neu_positionen.auftragsnr   = OLD.auftragsnr;DELETE FROM auftraege_neu_zubehoer    WHERE
auftraege_neu_zubehoer.auftragsnr    = OLD.auftragsnr;);
 
but I get a Parser Error:
ERROR: parser: parse error at or near ""
This is in PostgreSQL 6.5.2

Has anyone the correct syntax?

regards
Florian



pgsql-sql by date:

Previous
From: "Geeta Mahesh"
Date:
Subject: initdb problem on solaris sparc
Next
From: Sergey Bondarenko
Date:
Subject: RE: [SQL] 2 Aktions in a Rule