先上代码
CREATE TABLE test_insert (
id int,
name varchar(20) ,
PRIMARY KEY (id)
);
CREATE TABLE log(
code varchar(10),
message varchar(50),
time timestamp
);
CREATE DEFINER=`root`@`%` PROCEDURE `transexceptionlog`(
IN in_id INT,
IN in_name VARCHAR