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

oracle游标

SET NEWPAGE NONE HEADING OFF SPACE 0 PAGESIZE 0 TRIMOUT ON TRIMSPOOL ON LINESIZE 2500 colsep | feedback off termout off pages 0
set colsep |
alter session set nls_date_format='yyyy-mm-dd hh24:mi:ss';
set feedback on
declare cursor cur_no is
select  beginno,endno  from hm where 1=1;
beginno varchar2(11);
endno varchar2(11);
begin
  for my_no in cur_no loop
    beginno:=my_no.beginno;
    endno:=my_no.endno;
    while (beginno<=endno) loop
    insert into hmnew values(beginno);
    commit;
    beginno:=beginno+1;
    end loop;
    commit;
  end loop;
end;


相关文档:

oracle笔记


sqlplus sys/password  as sysdba;系统管理员登录
alter user scott account unlock; 更改用户
desc (表名)
select * from (table name);
select distinct ename from emp;
select ename,sal from emp;
select ename,sal*12 'annual_sal' from emp;
select ename,sal from emp where sal>1000;
select ......

Oracle9中XML SQL Utility技术指导(java)

■     开发前要求配置
■     Select XML格式数据
■     Insert XML格式数据
■     Updata XML格式数据
■     Delete XML格式数据
开发前要求配置
必须安装Oracle客户端
把Classpath指向
classes111.zip ......

oracle触发redo写的四个条件

当LGWR处于空闲状态时,它依赖于rdbms rpc message等待事件,处于休眠状态,直到三秒时间到,如果这个时候LGWR发现有Redo信息需要写出的话,那么LGWR将执行写的操作,log file parallel write等待事件将会出现。
  总结一下Redo写的触发条件:
  1,每三秒钟超时(timeout):
当LGWR处于空闲状态时,它依赖于rdbms r ......

ORACLE ORA 00132 ORA 00214

oracle断电后重启出现的问题已经解决方法
一、ORA-00132 
问题描述 :syntax error or unresolved network name ''
第1步:复制一份pfile参数文件(注意:oracle中的pfile指的就是init<sid>.ora文件)
$sqlplus '/as sysdba';
SQL> create pfile from spfile='/u01/oracle/product/10.2.0/db_1/dbs/spf ......

Oracle Decode函数

DECODE函数相当于一条件语句(IF).它将输入数值与函数中的参数列表相比较,根据输入值返回一个对应值。函数的参数列表是由若干数值及其对应结果值组成的若干序偶形式。当然,如果未能与任何一个实参序偶匹配成功,则函数也有默认的返回值。区别于SQL的其它函数,DECODE函数还能识别和操作空值.
其具体的语法格式如下:
DE ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号