Merge pull request #242 from Alpha2J/patch-1

Update SQL.md
This commit is contained in:
CyC2018 2018-05-07 12:20:17 +08:00 committed by GitHub
commit 1a7c08f047
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -603,7 +603,10 @@ INSERT 触发器包含一个名为 NEW 的虚拟表。
```sql ```sql
CREATE TRIGGER mytrigger AFTER INSERT ON mytable CREATE TRIGGER mytrigger AFTER INSERT ON mytable
FOR EACH ROW SELECT NEW.col; FOR EACH ROW SELECT NEW.col into @result;
-- 获取结果
SELECT @result;
``` ```
DELETE 触发器包含一个名为 OLD 的虚拟表,并且是只读的。 DELETE 触发器包含一个名为 OLD 的虚拟表,并且是只读的。