RE: [SQL] 2 Aktions in a Rule

From: Sergey Bondarenko <sbon(at)scelto(dot)ts(dot)kiev(dot)ua>
To: pgsql-sql(at)postgresql(dot)org
Subject: RE: [SQL] 2 Aktions in a Rule
Date: 1999-10-05 10:31:04
Message-ID: XFMail.991005133104.sbon@relc.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

I have the same problem. Dox says that multiple actions are permitted
on a single rule. But it won't work. I do not know why.

On 05-Oct-99 Florian Makesch wrote:
> 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
> WHERE auftraege_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
>
>
> ************

Sergey Bondarenko
Relcom-Ukraine system administrator

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Justin Long 1999-10-05 14:05:00 Proper syntax of WHERE (select...)?
Previous Message Florian Makesch 1999-10-05 08:43:59 2 Aktions in a Rule