From: | Andriy Pyrozhenko <andriy(dot)pyrozhenko(at)vanjaonline(dot)com> |
---|---|
To: | pgsql-sql(at)postgresql(dot)org |
Subject: | SQL |
Date: | 2001-11-16 11:19:51 |
Message-ID: | 5711701906.20011116131951@vanjaonline.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
Hello ,
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 = 123)
This query does not delete the record from jobs but delete the
record by rule.
What must I change for work this query correctly?
Best regards,
Andriy mailto:andriy(dot)pyrozhenko(at)vanjaonline(dot)com
From | Date | Subject | |
---|---|---|---|
Next Message | Markus Bertheau | 2001-11-16 11:41:31 | between syntax |
Previous Message | Otakar Kleps | 2001-11-16 10:58:35 | Re: Help with RULE - my mistake |