简体   繁体   English

如何在 mysql 触发器中声明 If 语句

[英]How to declare If Statement in mysql triggers

I'm trying to create a trigger in phpmyadmin.我正在尝试在 phpmyadmin 中创建触发器。 Can anyone tell me what's wrong with this query, it keeps telling me MySQL error #1064, SQL Syntax谁能告诉我这个查询有什么问题,它一直告诉我 MySQL 错误 #1064, SQL 语法在此处输入图像描述

You have no BEGIN at the start of the trigger body, to match the end on the last line.您在触发器主体的开头没有BEGIN ,以匹配最后一行的end

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM