日期:2014-05-16  浏览次数:20766 次

在存储过程中流程语句怎么写啊,急,在线等!
在ms   sql中,如果流程程序可以用if
if()   Begin
//程序块
end
else   begin
//程序块
end

在MySql中怎么处理啊,他的if成了if(表达式1,表达式2,表达式3)而不能执行一段块程序。

帮帮忙,谢谢了

------解决方案--------------------
declare i int;
if i > 0 then
select 1;
end if;
=====
if i> 0 then
select 1;
else
select 0;
end if;