易截截图软件、单文件、免安装、纯绿色、仅160KB

ORACLE类似split函数的功能

 SELECT ID,
       col_name,
       SUBSTR(col_name, 1, INSTR(col_name || ',', ',', 1, 1) - 1) C1,
       SUBSTR(col_name,
              INSTR(col_name || ',', ',', 1, 1) + 1,
              INSTR(col_name || ',', ',', 1, 2) - INSTR(col_name || ',', ',', 1, 1) - 1) C2,
 SUBSTR(col_name,
              INSTR(col_name || ',', ',', 1, 2) + 1,
              INSTR(col_name || ',', ',', 1, 3) - INSTR(col_name || ',', ',', 1, 2) - 1) C3
  from tab_name


相关文档:

(转)oracle中的rownum


在Oracle中,要按特定条件查询前N条记录,用个rownum就搞定了。
select * from emp where rownum <= 5
而且书上也告诫,不能对rownum用">",这也就意味着,如果你想用
select * from emp where rownum > 5
则是失败的。要知道为什么会失败,则需要了解rownum背后的机制:
1 Oracle executes your quer ......

Solaris10 安装Oracle 10g

http://inthirties.com:90/thread-1233-1-1.html
好没有碰Solaris了,手有些生了,看来真要装个solaris,平时多玩玩。
在solaris上装Oracle 10g先。
1. 检查安装依赖包
官方要求的包
SUNWarc
SUNWbtool
SUNWhea
SUNWlibm
SUNWlibms
SUNWsprot
SUNWtoo
SUNWi1of
SUNWi1cs
SUNWi15cs
SUNWxwfnt
执行命令
# p ......

ORACLE函数大全

LONEFOX题记:
最近搞ORACLE, 转过来供参考。
=================================
1、SQL 语句基础
下面给出SQL语句的基本介绍。
1.1、SQL语句所用符号
操作符
 用途
 例子
 
+ -
 表示正数或负数,正数可省去 +
 -1234.56
 
+
 将两个数或表达式进行相加
 A=c+b ......

oracle 常用函数

1. select * from emp;
2. select empno, ename, job from emp;
3. select empno 编号, ename 姓名, job 工作 from emp;
4. select job from emp;
5. select distinct job from emp;
6. select distinct empno, job from emp;
说明:因为雇员编号不重复, 所以此时证明所有的列没有重复,所以不能消 ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号