Обсуждение: Question

Поиск
Список
Период
Сортировка

Question

От
Andriy Pyrozhenko
Дата:
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)
Thisquery does not delete the record from jobs but delete the record by rule.
 

Best regards,Andriy                          mailto:andriy.pyrozhenko@vanjaonline.com





---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster