Here is the output of the trigger code:
The trigger monster_audit will log changes made to the monster table to the mo_audit table.
When a row is inserted into the monster table, the trigger will insert a row into mo_audit with:
- new_name column populated with the name from the inserted row
- old_name column set to null
- user_name populated with the username of the user performing the insert
- entry_date populated with the current timestamp
- operation set to 'Insert'
When a row is deleted from the monster table, the trigger will insert a row into mo_audit with:
- new_name column set to null
-