Home >Database >Mysql Tutorial >mysql-mySQL触发器编写,麻烦大神帮忙,急急急

mysql-mySQL触发器编写,麻烦大神帮忙,急急急

WBOY
WBOYOriginal
2016-06-06 09:40:101160browse

mysql触发器

例如一个表user, 两个字段id和name,id为主键且自增。现在如果在user表里面插入一个数据,如果插入的name为 张三,那么再在这个表里插入一个name为 李四的记录。
请问这个触发器怎么写。是mysql数据库

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn