16 lines
448 B
MySQL
16 lines
448 B
MySQL
|
DELIMITER $$
|
||
|
CREATE OR REPLACE DEFINER=`root`@`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 ;
|