sql触发器insert实例 SQL语句创建INSERT触发器?
浏览量:1838
时间:2021-03-10 16:59:08
作者:admin
SQL语句创建INSERT触发器?
1.createtriggerinsert_banji ont_banji afterinsert as if(tnonotin(selecttnofromt_banji)) print"不能插入" go 2.createtriggerdelete_banji ont_banji fordelete as if((selectcount(*)fromt_banji,deleted wheret_banji.tno=deleted.tno)0) deletet_xs wheretnoin(selecttnofromt_banji,deleted wheret_banji.tno=deleted.tno) go
sql触发器insert实例 insert触发器例子 oracle触发器insert写法
版权声明:本文内容由互联网用户自发贡献,本站不承担相关法律责任.如有侵权/违法内容,本站将立刻删除。