CREATE TRIGGER my_trigger BEFORE INSERT
ON employee
FOR EACH ROW BEGIN
INSERT INTO trigger_test VALUES('added a new employee');
END;
The above code works fine in pop sql but it shouldn't work because the delimiter by default is ';' and you can't change it in pop sql using the 'DELIMITER' command, so the code should end at the INSERT statement and therefore an error should be thrown. Can someone explain why this is happening?