This small query is driving me crazy. I keep getting errors no matter what I try
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 '' at line 6
This is the code
CREATE PROCEDURE deposit (
IN custAccount INT(11),
IN amount INT(11)
)
IF amount < 0 THEN
SIGNAL SQLSTATE '45000' SET MESSAGE_TEXT = 'Invalid amount';
END IF;
The procedure is incomplete, dont judge it yet :D Thanks