gmocamilotd
12/4/2017 - 5:33 PM

mysql un pequeño sistema de depuración

DROP PROCEDURE IF EXISTS sp_depura$$
CREATE DEFINER = 'developer'@'%'
PROCEDURE sp_depura(IN `thestring` CHAR(120))
BEGIN
insert into z10depurasmss (fechahora, mensaje) values(now(),thestring);
END

--- un ejemplo: call sp_depura(concat('bInputstring (D):',bInputstring));
--- o: call sp_depura(concat_ws('','nLargoSecu_:', nLargoSecu_));
-- Definition for table z10depurasmss
--
DROP TABLE IF EXISTS z10depurasmss;
CREATE TABLE z10depurasmss (
  id INT(11) NOT NULL AUTO_INCREMENT,
  fechahora DATETIME DEFAULT NULL,
  mensaje VARCHAR(120) DEFAULT NULL,
  PRIMARY KEY (id)
)