The TERMINATOR is what the SQL program uses to end an SQL statement. In general, the terminator is a semicolon. Since the trigger has a semicolon in the code, you have to tell the DBMS that you want to terminate the CREATE TRIGGER STATEMENT with something else, like $ or ~.