Subject | Help writing generic trigger replacing foreign keys |
---|---|
Author | German Pablo Gentile |
Post date | 2004-10-01T09:18:47Z |
I will delete the foreign keys, and need to adda few checks in side
firebird db.
TABLE A
ID
IDTABLEA
VALUE
TABLEB
ID
VALUE
Foreign Key is
IDTABLEA = ID (IN TABLEB)
How can i check with a trigger deleting values in TABLEB as dont exist
in TABLEA?
I dont need to cascade the value ID (IN TABLEB), it never changes at
application level.
TIA
German.
firebird db.
TABLE A
ID
IDTABLEA
VALUE
TABLEB
ID
VALUE
Foreign Key is
IDTABLEA = ID (IN TABLEB)
How can i check with a trigger deleting values in TABLEB as dont exist
in TABLEA?
I dont need to cascade the value ID (IN TABLEB), it never changes at
application level.
TIA
German.