14 lines
317 B
MySQL
14 lines
317 B
MySQL
|
DELIMITER $$
|
||
|
CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `vn2008`.`mensaje`(IN idREM INT, IN idDES INT, IN strMSG LONGTEXT)
|
||
|
BEGIN
|
||
|
|
||
|
/*DECLARE lngLASTID BIGINT;*/
|
||
|
|
||
|
-- Caso sencillo
|
||
|
|
||
|
INSERT INTO Mensajes(Mensaje, Fecha, Remitente, Destinatario)
|
||
|
VALUES(strMSG, util.VN_NOW(), idREM, idDES);
|
||
|
|
||
|
END$$
|
||
|
DELIMITER ;
|