19 lines
404 B
SQL
19 lines
404 B
SQL
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 ;
|