Question

From: Andriy Pyrozhenko <andriy(dot)pyrozhenko(at)vanjaonline(dot)com>
To: pgsql-sql(at)postgresql(dot)org
Subject: Question
Date: 2001-11-16 09:38:30
Message-ID: 945621152.20011116113830@vanjaonline.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Hello pgsql-sql,

I have the rule for table
CREATE RULE del_jobs_del_activity AS ON DELETE TO jobs DO DELETE FROM activities WHERE job_id = OLD.job_id;

When i call:
DELETE FROM jobs WHERE job_id IN (SELECT DISTINCT job_id FROM activities WHERE load_no = OLD.load_no)
This query does not delete the record from jobs but delete the
record by rule.

Best regards,
Andriy mailto:andriy(dot)pyrozhenko(at)vanjaonline(dot)com

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Otakar Kleps 2001-11-16 10:58:35 Re: Help with RULE - my mistake
Previous Message Janning Vygen 2001-11-16 08:46:20 image db with keywords? n:n or 1:n relation