Skip to content
Advertisement

What does DELIMITER // do in a Trigger?

DELIMITER //

What is the of use of it?

Advertisement

Answer

It changes the statement delimiter from ; to //. This is so you can write ; in your trigger definition without the MySQL client misinterpreting that as meaning you’re done with it.

Note that when changing back, it’s DELIMITER ;, not DELIMITER; as I’ve seen people try to do.

User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement