求教一条数据库触发器。。希望能给具体点。我现在有一个数据库info  数据库有2个表 table1 和table2 table1分别有 id   number    name    phone   state这5列,id是主键自动增长的
table2的设计和table1一样。当在table2中的number列有一条数据和table1中的数据相同的话,table1的那一条数据的state这一列的值就改为“忙碌”当table1中的number列没有数据和table2中的number列数据相同的话table1中的number列的数据会自动改为“空闲”哪个高手能告诉我怎么写吗?如果还有疑问就加我QQ806778705