2024-01-15 11:31:03 +00:00
|
|
|
DELIMITER $$
|
2024-07-08 11:17:29 +00:00
|
|
|
CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `vn`.`collection_setParking`(
|
|
|
|
vSelf INT,
|
|
|
|
vParkingFk INT
|
|
|
|
)
|
|
|
|
BEGIN
|
2024-01-15 11:31:03 +00:00
|
|
|
/**
|
|
|
|
* Aparca una colección en un parking.
|
|
|
|
*
|
2024-07-08 11:17:29 +00:00
|
|
|
* @param vSelf Id colección
|
|
|
|
* @param vParkingFk Id parking
|
2024-01-15 11:31:03 +00:00
|
|
|
*/
|
2024-07-08 11:17:29 +00:00
|
|
|
REPLACE ticketParking(ticketFk, parkingFk)
|
2024-01-15 11:31:03 +00:00
|
|
|
SELECT tc.ticketFk, vParkingFk
|
2024-07-08 11:17:29 +00:00
|
|
|
FROM ticketCollection tc
|
|
|
|
WHERE tc.collectionFk = vSelf;
|
2024-01-15 11:31:03 +00:00
|
|
|
END$$
|
|
|
|
DELIMITER ;
|