I need to truncate a table with a stored procedure. Here is the code for the stored procedure:
DELIMITER //
CREATE PROCEDURE MA_ClearPenaltyExport
BEGIN
TRUNCATE TABLE MA_STG_PenaltyExport;
END //
DELIMITER ;
but I'm getting an error as #1064 - 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 'BEGIN
TRUNCATE TABLE MA_STG_PenaltyExport;
END' at line 3