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;
相关文档:
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 ......
1.基础认识
DBMS_RANDOM包的详细信息:
select text from all_source
where name = 'DBMS_RANDOM'
......
■ 开发前要求配置
■ Select XML格式数据
■ Insert XML格式数据
■ Updata XML格式数据
■ Delete XML格式数据
开发前要求配置
必须安装Oracle客户端
把Classpath指向
classes111.zip ......
DML Data manipulation language
SELECT
SELECT [DISTINCT] *|列xx [AS] "别名xx"[,列xx "别名xx"...]
字符串连接符 ||, 字符或日期类型的字符串用单引号’’, 列别名用双引号“”。如果别名中有空格、特殊字符或者要求区分大小写,必须用双引号。默认情况下列标题为大写, ......
itpub论坛中曾有兄弟说过materialized view是以空间换时间,我认为非常贴切。物化视图实际就是基于查询的数据拷贝,其形式
简单理解的话可以看成是create table table_name as select * from table。
呵呵,人们总是希望事情越简单越好嘛,于是当俺看到这个东西这么简单,头脑一发热也迫不及待冲了过云,下面我就具体描 ......