SQL - Mailing list pgsql-sql

From Andriy Pyrozhenko
Subject SQL
Date
Msg-id 5711701906.20011116131951@vanjaonline.com
Whole thread Raw
List 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
doesnot 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.pyrozhenko@vanjaonline.com






pgsql-sql by date:

Previous
From: Markus Bertheau
Date:
Subject: between syntax
Next
From: Tom Lane
Date:
Subject: Re: between syntax