17 lines
409 B
SQL
17 lines
409 B
SQL
DELIMITER $$
|
|
CREATE OR REPLACE DEFINER=`vn-admin`@`localhost` PROCEDURE `vn`.`saleGroup_add`(vSectorFk INT,vTicketFk INT)
|
|
BEGIN
|
|
/**
|
|
* Añade un nuevo registro a la tabla y devuelve su id.
|
|
*
|
|
* @param vSectorFk Identificador de vn.sector
|
|
*/
|
|
INSERT INTO vn.saleGroup
|
|
SET `userFk` = account.myUser_getId(),
|
|
`sectorFk` = vSectorFk,
|
|
`ticketFk` = vTicketFk;
|
|
|
|
SELECT LAST_INSERT_ID();
|
|
END$$
|
|
DELIMITER ;
|