摘要:
-- 创建触发器 CREATE TRIGGER myTrigBEFORE INSERT ON testFOR EACH ROWinsert into test_log(date,log) values(now(),'add one'); -- 触发触发器 insert into test(name, 阅读全文
摘要:
--创建存储过程 delimiter // --重定义结束符create procedure myProc()beginselect * from test;end;// delimiter ; --恢复结束符定义 --调用存储过程 call myProc(); --删除存储过程 drop proc 阅读全文