当前位置:Gxlcms > 数据库问题 > mysql if--then--else --endif 问题

mysql if--then--else --endif 问题

时间:2021-07-01 10:21:17 帮助过:4人阅读

  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 问题

标签:--   set   class   logs   result   else   问题   highlight   pre   

人气教程排行