Re: ON UPDATE CASCADE in derby

2005-11-25 Thread Jean T. Anderson
Vasja Pupkin wrote: Is there any chance to implement such statement in derby? CREATE TABLE A ( ax INTEGER NOT NULL, PRIMARY KEY(ax) ); CREATE TABLE B ( bx INTEGER NOT NULL, FOREIGN KEY (bx) REFERENCES A (ax) ON UPDATE CASCADE -- can't make this work

RE: ON UPDATE CASCADE in derby

2005-11-25 Thread Andrej Tibaut
UPDATE CASCADE in derby ÷ ÷Is there any chance to implement such statement in derby? ÷ ÷CREATE TABLE A ( ÷ax INTEGER NOT NULL, ÷ ÷PRIMARY KEY(ax) ÷); ÷ ÷CREATE TABLE B ( ÷ ÷bx INTEGER NOT NULL, ÷ ÷FOREIGN KEY (bx) REFERENCES A (ax) ÷ON UPDATE CASCADE -- can't make this

ON UPDATE CASCADE in derby

2005-11-24 Thread Vasja Pupkin
Is there any chance to implement such statement in derby? CREATE TABLE A ( ax INTEGER NOT NULL, PRIMARY KEY(ax) ); CREATE TABLE B ( bx INTEGER NOT NULL, FOREIGN KEY (bx) REFERENCES A (ax) ON UPDATE CASCADE -- can't make this work ON DELETE CASCADE );

RE: ON UPDATE CASCADE

2005-04-05 Thread Andrej Tibaut
DRSII-SQLJ-16357) the options for ON UPDATE are NO ACTION and RESTRICT, but I would need ON UPDATE CASCADE:     FOREIGN KEY (VrstaId) REFERENCES VrstaPrevoza(VrstaId) ON UPDATE CASCADE;   This is possible in PostgreSQL but obviously not in Derby. How do other users handle cascade updat

Re: ON UPDATE CASCADE

2005-04-05 Thread Arda M
rstaId='AB' WHERE VrstaId='MK';ERROR 23503: UPDATE on table 'VRSTAPREVOZA' caused a violation of foreign key constraint 'SQL050403042438881' for key (MK).  The statement has been rolled back.   ---   I would expect to be able to

ON UPDATE CASCADE

2005-04-04 Thread Andrej Tibaut
n of foreign key constraint 'SQL050403042438881' for key (MK).  The statement has been rolled back.   -------   I would expect to be able to define the foreign key like FOREIGN KEY (VrstaId) REFERENCES VrstaPrevoza(VrstaId) ON UPDATE CASCADE; but this doesn't work in Derby.   How to implement "UPDATE CASCADE"??   Many thanks!   Andrej

ON UPDATE CASCADE ?

2005-04-03 Thread Andrej Tibaut
n of foreign key constraint 'SQL050403042438881' for key (MK).  The statement has been rolled back.   -------   I would expect to be able to define the foreign key like FOREIGN KEY (VrstaId) REFERENCES VrstaPrevoza(VrstaId) ON UPDATE CASCADE; but this doesn't work in Derby.   How to implement "UPDATE CASCADE"??   Many thanks!   Andrej