zoukankan      html  css  js  c++  java
  • 关于null的判断

    Java中【null】的判断:

    1.【null】只能通过is null,is not null判断,任何与的 关系运算(比较,有大于、大于等于、小于、小于等于、等于、不等于六种运算)都是false。

    解决的方法:if(【null】is not null and 【null】>=n)

    declare
    -- Local variables here
    i integer;
    v_platform number(10);
    begin
    -- Test statements here
    SELECT null INTO v_platform FROM dual;
    dbms_output.put_line('wwwww'||v_platform);
    if  v_platform<>19 then
    dbms_output.put_line('wwwww');
    end if;

    end;

    改进:

    declare
    -- Local variables here
    i integer;
    v_platform number(10);
    begin
    -- Test statements here
    SELECT null INTO v_platform FROM dual;
    dbms_output.put_line('wwwww'||v_platform);
    if v_platform is not null and v_platform<>19 then
    dbms_output.put_line('wwwww');
    end if;

    end;

  • 相关阅读:
    练习题
    java关键字
    循环结构
    第一天的学习
    爬虫的简单介绍
    Windows10 专业版秘钥激活
    flask补充
    Flask框架
    小程序登录、授权、支付
    赃读、不可重复读 和 幻读
  • 原文地址:https://www.cnblogs.com/shan-pj/p/9857351.html
Copyright © 2011-2022 走看看