QUOTE(mystical zero @ Nov 19 2007, 08:19 PM)
The "Cascade Update" option will only take into account the changes you made to the primary key's data. Let's say you have a main table and you change an initial data of its primary key from "123" to "456". With the "Cascade Update" option enabled, the data of the foreign key in the intermediate table which previously has a value of "123" will be automatically updated to "456". Simply put, it means that whatever changes you made to the primary key's data will in turn apply automatically across all related foreign key's data.
oic.
let said i have two tables with different records but they share the same type of primary key.
how to add new record (record for primary) in both table simultaneously?
for example, I have two tables: Product table and Order table.
Both have same type of primary key: CustomerID
How to do that when I add "Kingston" customer in Product table, another "Kingston" customer automatically add into Order table?