This web page makes available a utility to produce SQL Trigger code effecting foreign key constraints.

Paste your SQL code (CREATE TABLE statements, separated by semicolons) in this box, then click "GENERATE" to see trigger code in the results box below.