欢迎投稿

今日深度:

oracleinstr函数

oracleinstr函数


语法:instr( fatherstr, sonstr [, start_position [, matchtimes ] ] )
fatherstr:父字符串,要在此字符串中查找子字符串的位置。
sonstr:要在fatherstr中查找的字符串.
start_position:代表从fatherstr开始查找的的开始位置。此参数可选,如果省略默认为1.
字符串索引从1开始。如果此参数为正,从左到右开始检索,如果此参数为负,从右到左检索,
返回要查找的子字符串在父字符串中的开始索引。
matchtimes:代表要查找子字符串在父字符串中第几次匹配的次数. 此参数可选,如果省略,默认为 1.如果为负数系统会报错。

www.htsjk.Com true http://www.htsjk.com/oracle/22625.html NewsArticle oracleinstr函数 语法: instr( fatherstr, sonstr [, start_position [, matchtimes ] ] ) fatherstr:父字符串,要在此字符串中查找子字符串的位置。 sonstr:要在fatherstr中查找的字符串. start_position:代表从...
评论暂时关闭