Oracle 游标 Cursor 使用
create or replace procedure getok
as
cursor mycur is select ids,name from aaa where name not in (select names from ok);
vempno aaa.ids%type;
vename aaa.name%type;
begin
open mycur;
loop
fetch mycur into vempno,vename;
exit when mycur%notfound;
if mycur%found then
insert into ok values(vempno,vename);
end if;
end loop;
dbms_output.put_line('I Found You!'||mycur%rowcount||'行');
close mycur;
end getok;
本文来自CSDN博客,转载请标明出处:http://blog.csdn.net/lixianzhang0493/archive/2009/12/31/5109682.aspx
相关文档:
Oracle Flashback Technology
Oracle Flashback Technology reduces recovery time from hours to minutes.
from: http://www.oracle.com/technology/deploy/availability/htdocs/Flashback_Overview.htm
According to many studies, 40% of application outages are caused by operator or user errors. Part of be ......
原发表于http://saharabear.javaeye.com
和http://www.haulynjason.net(英)
同时发表在这里.
大约半年前,Oracle公司宣布,它想收购Sun,昨天的时候,Oracle公司宣布完成对Sun微系统的收购。作为Java程序员,我们大家都非常关
心的是Sun产品,包括Java,Netbeans,Glassfish,Solaris/
OpenSolaris,OpenOffice, ......
http://blog.csdn.net/XIAOHUI_LIAO/archive/2007/08/27/1759990.aspx
create materialized view [view_name]
refresh [fast|complete|force]
[
on [commit|demand] |
start with (start_time) next (next_time)
]
as
{创建物化视图用的查询语句}
以上是 ......
1. 在oracle 下创建表
t_user(
ID varchar(20),
Name varchar(20)
)
2. 添加数据
&nb ......