关于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;
最新文章
- jQuery初始化加载的实现
- freeCAD下载与安装
- static关键字详解
- 【iCore3 双核心板】例程十六:USB_HID实验——双向数据传输
- Spring 一二事(5) - 依赖注入
- iOS 开发之重力动画效果
- hdu 3072
- QMapControl介绍
- hdu 5642 King&#39;s Order(数位dp)
- axios全攻略
- Visual Studio2017中如何让Entity Framework工具【ADO.NET实体数据模型】支持MYSQL数据源
- angular2 组件交互
- ZOJ1171
- Java JTable列顺序和列宽度保存在用户本地
- JVM学习(一)、垃圾收集器简介
- 关于GPL协议的理解(开源与商用、免费与收费的理解)
- clusterProfiler包
- 在centOS 7 中安装 MySQL
- scrapy爬虫框架之Xpath选择器
- python学习(十三)进程和线程