16 lines
446 B
SQL
16 lines
446 B
SQL
DELIMITER $$
|
|
CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `vn`.`workerMistake_add`(vWorkerFk INT, vWorkerMistakeTypeFk VARCHAR(10))
|
|
BEGIN
|
|
/**
|
|
* Añade error al trabajador
|
|
*
|
|
* @param vWorkerFk id del trabajador al cual se le va a añadir error
|
|
* @param vWorkerMistakeTypeFk code del tipo de error
|
|
*
|
|
*/
|
|
INSERT INTO vn.workerMistake(userFk, workerMistakeTypeFk)
|
|
VALUES(vWorkerFk, vWorkerMistakeTypeFk);
|
|
|
|
END$$
|
|
DELIMITER ;
|