用Bollger记录技术之路的点滴...

关注高性能linux网络编程,NoSQL, c/c++/java ~~~ weibo @语_行 http://weibo.com/201281062~~~ twitter @JerryVector https://twitter.com/JerryVector
  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2012年11月15日

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

posted @ 2012-11-15 22:18 语行 阅读(3786) 评论(1) 推荐(3) 编辑