Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
设置搜索条件以返回数据的特定子集。
IF search-condition THEN expression1 [ ELSE expression2 ] ENDIF
出于兼容性考虑,此表达式可用 ENDIF 或 END IF 结尾。
该表达式的返回方式如下:
如果 search-condition 为 TRUE,则 IF 表达式返回 expression1。
如果 search-condition 为 FALSE 并且指定了 ELSE 子句,则 IF 表达式返回 expression2。
如果 search-condition 为 FALSE,且无 expression2,则 IF 表达式返回 NULL。
如果 search-condition 为 UNKNOWN,则 IF 表达式返回 NULL。