I know there must be a simple way to do this but I couldn’t find one. I want to create a trigger that basically, when a row is created in table1, creates a new row in table2 with a foreign key of the id of table1. what is the general syntax for this? thanks!!
Share
CREATE TRIGGER Syntax
For example –