在 Informix 存储过程中,我有一些条件如下:-
If val1 > 0 // 1st If
Select count(*) of value from a table and stored it in a Variable say VALUE
If VALUE > 0 // 2nd If
perform UPDATE
ELSE // Intended ELSE for 2nd IF
Perform Insert
END IF
ELSE // Intended ELSE for 1st IF
perform Operation X
END IF
我如何看待我的execution is always going in ELSE Intended for 1st IF
,这对我来说是个问题。有人可以让我知道我该如何纠正这个或我哪里出错了。问候