语法
代码如下 | 复制代码 |
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. |
敢达决战官方正版 安卓版v6.7.9
下载敢达决战 安卓版v6.7.9
下载像素火影骨架佐助 (Perseverance Fire Shadow)手机版v1.16
下载要塞英雄 安卓版v33.20.0-39082670-Android
下载梦想城镇vivo最新版本 安卓版v12.0.1
梦想城镇vivo版是这款卡通风模拟经营类手游的渠道服版本,玩
怦然心动的瞬间 安卓版v1.0
怦然心动的瞬间是一款真人向的恋爱互动游戏,在游戏中玩家将扮演
曼尼汉堡店游戏 安卓版v1.0.3
曼尼汉堡店是一款非常好玩的精品恐怖类型冒险游戏,在这款游戏中
现代总统模拟器去广告版 安卓版v1.0.46
现代总统模拟器是一款休闲养成类游戏,可能对于不少的玩家来说都
现代总统模拟器付费完整版 安卓版v1.0.46
现代总统模拟器高级版在商店是需要付费的,相对于普通版本,高级