摘要: 在oracle中,我们有时候会需要判断一个字符串里边是否包含有某一个串;首先,oracle为我们提供了instr这个函数: instr( string1, string2 [, start_position [, nth_appearance ] ] ) 参数分析: string1,源字符串,要在此字符串中查找。 string2: 要在string1中查找的字符串。 start_position: 代表string1 的哪个位置开始查找。此参数可选,如果省略默认为1. 字符串索引从1开始。如果此参数为正,从左到右开始检索,如果此参数为负,从右到左检索,返回要查找的字符串在源字符串... 阅读全文
posted @ 2012-11-15 22:31 温诗袀 阅读(233) 评论(0) 推荐(0) 编辑