oracle函数整理---instr函数
来源:互联网 发布:在线效果图制作软件 编辑:程序博客网 时间:2024/05/22 17:18
作用:返回要截取的字符串在源字符串中的位置
语法:instr( string1, string2 [, start_position [, nth_appearance ] ] )
参数解释:1)string1 源字符串,要在此字符串中查找。
2)string2 要在string1中查找的字符串。
3)start_position 【可选参数】代表string1 的哪个位置开始查找。如果省略默认为1,字符串索引从1开始。如果为负值,取其绝对值。
4)nth_appearance 【可选参数】代表要查找第几次出现的string2。如果省略,默认为1.如果为负数系统会报错。
返回值:数字型,string2在string1的起始位置。如果没有找到,返回0。
适用版本:Oracle 8i, Oracle 9i, Oracle 10g, Oracle 11g
范例:select instr('abc','d') from dual; -- 返回 0
select instr('abc','a') from dual; -- 返回 1
select instr('abcdabc','a',1,2) from dual; -- 返回 5
select instr('abc','c',-1) from dual; -- 返回 3
- oracle函数整理---instr函数
- Oracle instr函数
- oracle中instr函数
- Oracle的instr函数
- oracle中instr函数
- Oracle的instr函数
- oracle instr函数
- Oracle instr函数
- Oracle函数--INSTR
- Oracle的instr函数
- oracle函数INSTR用法
- Oracle的instr函数
- Oracle的instr函数
- Oracle instr函数
- Oracle instr函数
- Oracle instr函数
- Oracle instr函数
- Oracle instr函数
- Linux 进程间通信 - 共享内存shmget方式
- jQuery基础学习
- Android Wifi
- Android开发之SurfaceView
- glib编译错误
- oracle函数整理---instr函数
- Eclipse发布项目时部署失败情况解决办法
- 牛腩新闻发布系统笔记4:重构SQLHelper
- 消息中间件及WebSphere MQ入门
- 灰帽子:解读AV-C测评杀软仍然是卡慢系统的重要原因
- LINQ 访问 DataSet 数据集
- C++模板使用介绍
- 数组和指针的区别
- C++ Primer Plus学习:第五章 循环和关系表达式(2)