摘要: -- 创建触发器 CREATE TRIGGER myTrigBEFORE INSERT ON testFOR EACH ROWinsert into test_log(date,log) values(now(),'add one'); -- 触发触发器 insert into test(name, 阅读全文
posted @ 2019-11-22 15:23 leon-chan 阅读(144) 评论(0) 推荐(0) 编辑
摘要: --创建存储过程 delimiter // --重定义结束符create procedure myProc()beginselect * from test;end;// delimiter ; --恢复结束符定义 --调用存储过程 call myProc(); --删除存储过程 drop proc 阅读全文
posted @ 2019-11-22 14:54 leon-chan 阅读(131) 评论(0) 推荐(0) 编辑