-
字符串转数字函数to_number
select * from ( select null bh from dual union all select 2 bh from dual )aa order by to_number(bh) desc nulls last
https://blog.csdn.net/elite_1989/article/details/13016599
-
字段若为null赋值函数nvl
NVL(expr1,expr2)
expr1:可为空的字段或者表达式。
expr2:null的替代值。含义:如果表达式 expr1 为空(NULL),则显示表达式 expr2 的值,若非空,则显示expr1 的值。
https://blog.csdn.net/shuaishifu/article/details/37062049
-
检索字符位置instr
instr(string, subString, [start_position, [nth_appearance]])
其中,string是元字符串;subString是要查找的子字符串;start_position是要查找的开始位置,为可选项(默认为1),注意在这里字符串索引从1开始,如果此参数为正,则从左到右检索,如果此参数为负,则从右到左检索;nth_appearance是元字符串中第几次出现的子字符串,此参数可选,缺省默认为1,如果是负数则系统报错。
https://blog.csdn.net/housonglin1213/article/details/50344895
oracle检索字符位置instr及字符串转数字to_number
最新推荐文章于 2024-06-05 00:02:25 发布