rules
rules
От:
"Jie Liang" <jie@stbernard.com>
Дата:
According to the document of rule:
CREATE RULE rulename AS ON delete TO mytablename DO
(
delete from aaa where id=OLD.id;
Delete from bbb where id=OLD.id;
Delete from ccc where id=OLD.id
);
Should work, but it doesn't, what wrong with it?
Even I use { .... }
Jie Liang
Re: rules
От:
Stephan Szabo <sszabo@megazone.bigpanda.com>
Дата:
On Wed, 19 May 2004, Jie Liang wrote: > According to the document of rule: > > CREATE RULE rulename AS ON delete TO mytablename DO > ( > delete from aaa where id=OLD.id; > Delete from bbb where id=OLD.id; > Delete from ccc where id=OLD.id > ); > > > Should work, but it doesn't, what wrong with it? What is it doing and what version is this on?
Re: rules
От:
"Jan Norman Pedersen" <jan@multimediasyd.dk>
Дата:
Anslag "Stephan Szabo" wrote in message news:20040519104830.J85664@megazone.bigpanda.com... > On Wed, 19 May 2004, Jie Liang wrote: > > > According to the document of rule: > > > > CREATE RULE rulename AS ON delete TO mytablename DO > > ( > > delete from aaa where id=OLD.id; > > Delete from bbb where id=OLD.id; > > Delete from ccc where id=OLD.id > > ); > > > > > > Should work, but it doesn't, what wrong with it? > > What is it doing and what version is this on? > > > ---------------------------(end of broadcast)--------------------------- > TIP 8: explain analyze is your friend >