I am trying to add this function using the following SQL in phpmyadmin / MySQL
DROP FUNCTION IF EXISTS `__myv`; DELIMITER ;; CREATE FUNCTION `__myv`(`a` int, `b` int) RETURNS bigint(20) BEGIN return FLOOR(a / b); END;; DELIMITER ;
but I get this error:
Error
SQL query: DELIMITER; MySQL said: Documentation
How to fix this error?
source share