16 lines
463 B
SQL
16 lines
463 B
SQL
DELIMITER $$
|
|
CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `vn`.`collection_setParking`(IN `vCollectionFk` VARCHAR(8), IN `vParkingFk` INT)
|
|
proc: BEGIN
|
|
/**
|
|
* Aparca una colección en un parking.
|
|
*
|
|
* @param vCollectionFk Id de la colección
|
|
* @param vParkingFk Id del parking
|
|
*/
|
|
REPLACE vn.ticketParking(ticketFk, parkingFk)
|
|
SELECT tc.ticketFk, vParkingFk
|
|
FROM vn.ticketCollection tc
|
|
WHERE tc.collectionFk = vCollectionFk;
|
|
END$$
|
|
DELIMITER ;
|