【发布时间】:2016-04-01 17:24:44
【问题描述】:
IF region='Mumbai' OR region='Chennai' OR region='Bangalore' OR region='Pune' region='Coimbatore' OR region='Ahmedabad' THEN
SET region='South-west';
ELSE
SET region='North+East';
END IF;
我正在尝试创建一个 sp 我在上述条件中有错误。当我删除上述 if 条件时,存储过程的其余部分工作正常。
我在 if 语句中收到多个或条件的错误。
请帮忙。
【问题讨论】:
标签: mysql if-statement stored-procedures