Mariadb - Error declaring variable in trigger I'm trying to declare a variable to use later in my trigger, but I'm getting this error. 

ERROR 1064 (42000) 
You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'END' at line 7

DELIMITER $$
$$
CREATE TRIGGER clients_before_update 
BEFORE UPDATE ON clients FOR EACH ROW
BEGIN   

    declare var_test INT;

END;

$$
The special delimiter you have defined should be directly after the END. That is, replace your END; with END$$.