I need cascade entry of a number field (long int) from one table to another. The first table holds the primary key which is the number that needs to cascade to a second table. The second table is also using the number a primary key (not sure this is ok). Should I use a trigger on insert to do this or should the trigger execute a stored procedure?
What would be the correct syntax for the sql statment to make this type of thing work?
Can anybody point me to some good info on triggers and how and when to use them.
What would be the correct syntax for the sql statment to make this type of thing work?
Can anybody point me to some good info on triggers and how and when to use them.