19 lines
402 B
SQL
19 lines
402 B
SQL
DELIMITER $$
|
|
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 ;
|