if 0 =resultValue then set @m = 2; else set @m =1; end if
if 0 =resultValue then set @m = 2; else set @m =1; end if;
两段代码,差了一个分号;
没有分号的是错误的~
mysql if--then--else --endif 问题
原文:http://www.cnblogs.com/maomingchao/p/6801503.html