mysql的触发器
时间:2010-12-08 来源:lyb137
mysql> create trigger lyb_test after insert on lybtest1 for each row begin |
然后:
insert into lybtest1(ip,links,mac) values('192.168.8.8','15','50:1C:C0:B2:A1:77') |
现在查下lybtest2表
mysql> select * from lybtest2; |
查看触发器:
mysql> show triggers \G |
删除的话
drop trigger lyb_test;就可以了