Pre*_*ets 3 database oracle syntax plsql
只是想知道是否有更好的方法在ORACLE中编写以下PL/SQL代码片段?
IF(p_c_courtesies_cd is not null
OR p_c_language_cd is not null
OR v_c_name is not null
OR v_c_firstname is not null
OR v_c_function is not null
OR p_c_phone is not null
OR p_c_mobile is not null
OR p_c_fax is not null
OR v_c_email is not null
) THEN
-- Do something
END IF;
Run Code Online (Sandbox Code Playgroud)
If coalesce( expr1, expr2, ... expr_n ) is not null then do something end if;
Run Code Online (Sandbox Code Playgroud)
(感谢Tony的纠正)
| 归档时间: |
|
| 查看次数: |
3726 次 |
| 最近记录: |