salix/db/routines/vn/procedures/collection_setParking.sql

19 lines
404 B
MySQL
Raw Normal View History

DELIMITER $$
CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `vn`.`collection_setParking`(
vSelf INT,
vParkingFk INT
)
BEGIN
/**
* Aparca una colección en un parking.
*
* @param vSelf Id colección
* @param vParkingFk Id parking
*/
REPLACE ticketParking(ticketFk, parkingFk)
SELECT tc.ticketFk, vParkingFk
FROM ticketCollection tc
WHERE tc.collectionFk = vSelf;
END$$
DELIMITER ;