oracle instr
对于instr函数,我们经常这样使用:从一个字符串中查找指定子串的位置。例
如:
SQL> select
instr('yuechaotianyuechao','ao') position from dual;
POSITION
----------
6
从字符串'yuechaotianyuechao'的第一个位置开始,向后查找第一个出现子串'ao'出现的位置。
其实instr共有4个参数,格式为“instr(string, substring, position,
occurrence)”。可实现子串的如下搜索:
1.从指定位置开始搜索子串
2.指定搜索第几次出现的子串的位置
3.从后向前搜索
--1.从第7个字符开始搜索
SQL> select
instr('yuechaotianyuechao','ao', 7) position from dual;
POSITION
----------
17
--2.从第1个字符开始,搜索第2次出现子串的位置
SQL> select
instr('yuechaotianyuechao','ao', 1, 2) position from dual;
POSITION
----------
17
--3.从倒数第1个字符开始,搜索第1次出现子串的位置
SQL> select
instr('yuechaotianyuechao','ao', -1, 1) position from dual;
POSITION
----------
17
--3.从倒数第1个字符开始,搜索第2次出现子串的位置
SQL> select
instr('yuechaotianyuechao','ao', -1, 2) position from dual;
POSITION
----------
6
相关文档:
SQLPlus是oracle提供的一个命令行执行的工具
SQLPlus中用两种命令:
sqlplus:以命令行的方式进入数据库连接
sqlplusw:以窗口的形式启动命令行工具 注:主机字符串,输入数据库名称
&n ......
软件下载
到http://www.oracle.com/technology/software/tech/oci/instantclient/htdocs/winsoft.html下载如下三个包:
instantclient-basic-win32-11.1.0.7.0.zip
instantclient-jdbc-win32-11.1.0.7.0.zip
instantclient-sqlplus-win32-11.1.0.7.0.zip
将这三个包分别解压,然后内容放到D:\instantclient_11_1下
......
1.用Oracle用户登陆Linux服务器;
2.在终端窗口输入 sqlplus /nolog
[oracle@hylinux ~]$ sqlplus /nolog
SQL*Plus: Release 10.2.0.1.0 - Production on 星期二 7月 29 14:26:16 2008
Copyright (c) 1982, 2005, Oracle. All rights reserved.
& ......
原 文:平凡岁月:jira的安装(oracle数据库)http://www.trucy.org/blog/ray/archives/000927.html
以下是基于原文的补充完善后的内容:
JIRA是一个优秀的问题(or bugs,task,improvement,new feature  ......