I'm new to creating PROCEDURE. I'm trying to create this PROCEDURE plus this error.
DELIMITER //
DROP PROCEDURE IF EXISTS 'P_lgs';
CREATE PROCEDURE 'P_lgs' ( idcod INT, dt VARCHAR(20), ip VARCHAR(20), msg VARCHAR(250), mail VARCHAR(250) )
BEGIN
DECLARE numid INT DEFAULT 0;
IF idcol <> 0 THEN
numid = idcol;
END IF ;
INSERT INTO 'logs'(logs_cod,logs_dt,logs_ip,logs_mensagem,logs_email) VALUE(numid,dt,ip,msg,mail);
END //
DELIMITER ;