随笔 - 79  文章 - 11  trackbacks - 0
<2009年3月>
22232425262728
1234567
891011121314
15161718192021
22232425262728
2930311234

不再堕落。
Oracle documents: 
http://tahiti.oracle.com/

常用链接

留言簿

随笔分类(66)

随笔档案(79)

相册

收藏夹(11)

搜索

  •  

积分与排名

  • 积分 - 51971
  • 排名 - 952

最新随笔

最新评论

阅读排行榜

scott@ORCL> drop table t;

表已删除。

scott@ORCL
>
scott@ORCL
> create table t
  
2  as
  
3  select *
  
4    from all_users;

表已创建。

scott@ORCL
>
scott@ORCL
> variable x refcursor
scott@ORCL
>
scott@ORCL
> begin
  
2     open :x for select * from t;
  
3  end;
  
4  /

PL
/SQL 过程已成功完成。

scott@ORCL
> delete from t;

已删除28行。

scott@ORCL
>
scott@ORCL
> commit;

提交完成。

scott@ORCL
>
scott@ORCL
> print x

USERNAME                          USER_ID CREATED
------------------------------ ---------- --------------
BI                                     
60 13-3月 -09
PM                                     
59 13-3月 -09
SH                                     
58 13-3月 -09
IX                                     
57 13-3月 -09
OE                                     
56 13-3月 -09
HR                                     
55 13-3月 -09
SCOTT                                  
54 30-8月 -05
MGMT_VIEW                              
53 30-8月 -05
MDDATA                                 
50 30-8月 -05
SYSMAN                                 
51 30-8月 -05
MDSYS                                  
46 30-8月 -05
SI_INFORMTN_SCHEMA                     
45 30-8月 -05
ORDPLUGINS                             
44 30-8月 -05
ORDSYS                                 
43 30-8月 -05
此处 open 不复制任何数据,只是在你获取数据时它才从表中读数据。
posted on 2009-03-24 22:46 donnie 阅读(112) 评论(0)  编辑  收藏 所属分类: database

只有注册用户登录后才能发表评论。


网站导航: