Hello all,
I have a set of tables that work on a very basic tree-like structure with one "master" table at the root.
I have to copy data from these tables into other tables of exactly the same format if a condition is met for the master record.
My question is : when I copy the master record over is it possible (maybe using foreign keys?) to yank all the records in other tables that reference said master record at the same time? Obviously this can be done in code, I'm not asking that, what I'm after is if there is a way to "make the PC do it for me" if you get what I mean.
I'm almost after a CASCADE on a copy!!
Jo
I have a set of tables that work on a very basic tree-like structure with one "master" table at the root.
I have to copy data from these tables into other tables of exactly the same format if a condition is met for the master record.
My question is : when I copy the master record over is it possible (maybe using foreign keys?) to yank all the records in other tables that reference said master record at the same time? Obviously this can be done in code, I'm not asking that, what I'm after is if there is a way to "make the PC do it for me" if you get what I mean.
I'm almost after a CASCADE on a copy!!
Jo