Compound Statements

A compound statement such as BEGIN…END is a block of SQL commands. It is useful for EVENT, TRIGGER, PROCEDURE and FUNCTION.