I don't know if it is a simple mistake but couldn't figure out the syntax error in line which contains "NULL;". It says error 1064 on that line. The full message is: ERROR 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL;
CREATE PROCEDURE custom_consumption(IN p_deftype DOUBLE,
...
//code part//
...
IN p_user DOUBLE,
IN p_date DOUBLE,
IN p_tid VARCHAR(4000))
BEGIN
NULL;
END;
custom_consumption;
This page just shows how to get informed by a visual tool which is How can I fix MySQL error #1064? Thanks for any help. If you see any other mistakes on the code, please inform me.