mysql if--then--else --endif 问题
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;
两段代码,差了一个分号;
没有分号的是错误的~
posted on 2017-05-03 13:34 maomingchao 阅读(553) 评论(0) 收藏 举报
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;
两段代码,差了一个分号;
没有分号的是错误的~
posted on 2017-05-03 13:34 maomingchao 阅读(553) 评论(0) 收藏 举报
