Skip to content

Commit

Permalink
Update 21-minutes-MySQL-basic-entry.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove authored Nov 17, 2020
1 parent a46b0c8 commit fcedb08
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions 21-minutes-MySQL-basic-entry.md
Original file line number Diff line number Diff line change
Expand Up @@ -370,12 +370,14 @@ SELECT MAX(OrderPrice) AS LargestOrderPrice FROM Orders
## 触发器
> 语法:
> create trigger <触发器名称>
> { before | after} # 之前或者之后出发
> insert | update | delete # 指明了激活触发程序的语句的类型
> on <表名> # 操作哪张表
> for each row # 触发器的执行间隔,for each row 通知触发器每隔一行执行一次动作,而不是对整个表执行一次。
> ```
> create trigger <触发器名称>
> { before | after} # 之前或者之后出发
> insert | update | delete # 指明了激活触发程序的语句的类型
> on <表名> # 操作哪张表
> for each row # 触发器的执行间隔,for each row 通知触发器每隔一行执行一次动作,而不是对整个表执行一次。
> <触发器SQL语句>
> ```
```sql
delimiter $
Expand Down

0 comments on commit fcedb08

Please sign in to comment.