开发者

Evaluating boolean values in PL/SQL

Say I have a boolean variable foo.

At the moment I use IF foo = FALSE THEN ... to compare it it, but it seems so cum开发者_StackOverflow社区bersome. There has to be a better way!

An alternative would be to rename the variable to not_foo but that doesn't really make it any simpler.

Is there a way to test like IF !foo THEN ...?


I think you can use the

  IF NOT foo THEN...

Statement. Check out this link for more information

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜