如果表达式如何打开括号?

问题描述 投票:0回答:2

我有表情。我怎么打开或重写这个?

if not ((A or B) and PAR like '%3%') then
    --do some code
end if;

可以做到这一点更简单吗?请给我一个链接,以另一个表达式为例。

oracle plsql sql-like
2个回答
1
投票

以下内容应该与您正在寻找的内容相近:

IF A = FALSE AND B = FALSE AND REGEXP_LIKE(PAR, '[^3]') THEN
  -- code here
END IF;

分享和享受。


0
投票

尝试以下代码

if(A!=true or B!=true)
    if(REGEXP_LIKE(name,'[^r]'))
    /*code has to be written here*/
    end if;
end if;
© www.soinside.com 2019 - 2024. All rights reserved.