![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
oracle
前进道路上的程序猿
喜欢唱歌,热爱运动
展开
-
Oracle 中null,空字符串以及空格字符串的判断
sql查询test表中字段card 为null的语句:select * from test where card is null;查询test表中字段card 不为null的语句:select * from test where card is not null;但是在oracle中,如果字段时字符串类型,空字符串本身就代表null,所以不能用<>、!=、=等来比较空字符串所以查询test表中字段card为空字符串的语句:select * from test where card原创 2020-11-23 16:47:14 · 3885 阅读 · 0 评论 -
Oracle Procedure存储过程中遇到的一些基础知识
创建存储过程create or replace procedure test(var_name_1 in varchar2,var_name_2 out integer) as–声明变量(变量名 变量类型)begin–存储过程的执行体end test;其中in 是参数的默认模式,这种模式就是在程序运行的时候已经具有值,在程序体中值不会改变。out模式定义的参数只能在过程体内部赋值,...原创 2020-03-13 16:24:58 · 196 阅读 · 0 评论