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

19 lines
402 B
MySQL
Raw Permalink Normal View History

DELIMITER $$
2024-08-20 08:06:10 +00:00
CREATE OR REPLACE DEFINER=`vn`@`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 ;