✎
编程开发网
首页
C语言
C++
面试
Linux
函数
Windows
数据库
下载
搜索
当前位置:
首页
->
AI编程基础
->
数据库编程
oracleinstr函数
2014-11-23 17:32:21
·
作者:
·
浏览:
74
标签:
oracleinstr
函数
语法:
instr( fatherstr, sonstr [, start_position [, matchtimes ] ] )
fatherstr:父字符串,要在此字符串中查找子字符串的位置。
sonstr:要在fatherstr中查找的字符串.
start_position:代表从fatherstr开始查找的的开始位置。此参数可选,如果省略默认为1.
字符串索引从1开始。如果此参数为正,从左到右开始检索,如果此参数为负,从右到左检索,
返回要查找的子字符串在父字符串中的开始索引。
matchtimes:代表要查找子字符串在父字符串中第几次匹配的次数. 此参数可选,如果省略,默认为 1.如果为负数
系统
会报错。