sql server 2008学习13 触发器
生活随笔
收集整理的這篇文章主要介紹了
sql server 2008学习13 触发器
小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
創(chuàng)建 for觸發(fā)器
use test gocreate trigger t1 on a for insert,update asinsert into b(name) values('a') .csharpcode, .csharpcode pre { font-size: small; color: rgba(0, 0, 0, 1); font-family: consolas, "Courier New", courier, monospace; background-color: rgba(255, 255, 255, 1) } .csharpcode pre { margin: 0 } .csharpcode .rem { color: rgba(0, 128, 0, 1) } .csharpcode .kwrd { color: rgba(0, 0, 255, 1) } .csharpcode .str { color: rgba(0, 96, 128, 1) } .csharpcode .op { color: rgba(0, 0, 192, 1) } .csharpcode .preproc { color: rgba(204, 102, 51, 1) } .csharpcode .asp { background-color: rgba(255, 255, 0, 1) } .csharpcode .html { color: rgba(128, 0, 0, 1) } .csharpcode .attr { color: rgba(255, 0, 0, 1) } .csharpcode .alt { background-color: rgba(244, 244, 244, 1); width: 100%; margin: 0 } .csharpcode .lnum { color: rgba(96, 96, 96, 1) }在a表插入或更新數(shù)據(jù)后,在b表同時(shí)插入一條數(shù)據(jù)
與50位技術(shù)專家面對(duì)面20年技術(shù)見證,附贈(zèng)技術(shù)全景圖總結(jié)
以上是生活随笔為你收集整理的sql server 2008学习13 触发器的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 在重庆高度为50米的房子房间距为30米会
- 下一篇: 针对大表 设计高效的存储过程【原理篇】