| From: | "Josh Berkus" <josh(at)agliodbs(dot)com> |
|---|---|
| To: | Andriy Pyrozhenko <andriy(dot)pyrozhenko(at)vanjaonline(dot)com>, pgsql-sql(at)postgresql(dot)org |
| Subject: | Re: Question |
| Date: | 2001-11-16 16:39:36 |
| Message-ID: | web-507613@davinci.ethosmedia.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-sql |
Andriy,
> 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.
And this is a problem because ... ?
-Josh
______AGLIO DATABASE SOLUTIONS___________________________
Josh Berkus
Complete information technology josh(at)agliodbs(dot)com
and data management solutions (415) 565-7293
for law firms, small businesses fax 621-2533
and non-profit organizations. San Francisco
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Josh Berkus | 2001-11-16 16:47:47 | Re: Help with INSERT into 2 tables |
| Previous Message | Peter Eisentraut | 2001-11-16 16:38:03 | Re: between syntax |