最新下载
热门教程
- 1
 - 2
 - 3
 - 4
 - 5
 - 6
 - 7
 - 8
 - 9
 - 10
 
oracle instr()函数用法详解
时间:2022-06-29 10:08:26 编辑:袖梨 来源:一聚教程网
语法
| 代码如下 | 复制代码 | 
| 
 instr( string1, string2 [, start_position [, nth_appearance ] ] )  | 
	  |
string1是要搜索的字符串。
string2为string1中搜索子串。
start_position是string1中搜索将开始的位置。此参数是可选。如果省略,则默认为1。字符串中的第一个位置是1。如果start_position是负数,函数从string1的开始搜索字符串,然后对结束计数的字符数start_position。
nth_appearance string2的第n个外观。这是可选的。如果省略,则默认为1。
注意:
如果string2在string1中找到,然后INSTR Oracle函数将返回0。
Applies To:
| 代码如下 | 复制代码 | 
| 
 Oracle 8i, Oracle 9i, Oracle 10g, Oracle 11g  | 
	  |
实例
| 代码如下 | 复制代码 | 
| instr('Tech on the net', 'e') would return 2; the first occurrence of 'e'  instr('Tech on the net', 'e', 1, 1) would return 2; the first occurrence of 'e' instr('Tech on the net', 'e', 1, 2) would return 11; the second occurrence of 'e' instr('Tech on the net', 'e', 1, 3) would return 14; the third occurrence of 'e' instr('Tech on the net', 'e', -3, 2) would return 2.  | 
	  |
相关文章
- 塞尔达无双封印战记豪华版多少钱 豪华版包含内容一览 11-04
 - 塞尔达无双封印战记switch1能玩吗 塞尔达无双游戏适配平台介绍 11-04
 - 原神杜林怎么配队 杜林队伍推荐 11-04
 - 原神杜林武器选择推荐 11-04
 - 原神杜林天赋等级突破材料一览 11-04
 - 碧蓝航线蒂奇喵强度怎么样 11-04