六狼论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博账号登陆

只需一步,快速开始

搜索
查看: 65|回复: 0

oracle hibernate 临时表 存储过程

[复制链接]

升级  2.67%

14

主题

14

主题

14

主题

秀才

Rank: 2

积分
54
 楼主| 发表于 2013-1-14 08:56:51 | 显示全部楼层 |阅读模式
参考资料 

1 ORACLE 存储过程返回临时表结果集 

http://hi.baidu.com/h_sn999/blog/item/4211810f4d7542fdaa645738.html
 

2 ORACLE 在存储过程中使用临时表 

http://blog.csdn.net/wekily/article/details/6120900
 

3 Oracle存储过程中创建临时表<原创> 

http://blog.sina.com.cn/s/blog_4c7ae2a80100bki3.html
 

4 在ORACLE存储过程中创建临时表 

http://huqiji.iteye.com/blog/782067
 

总结如下: 

DDL是一种消耗资源非常大的操作,运行时尽量不要使用DDL语句,应用程序需要的临时表应在运行之前就开始创建。不必在每个存储过程中创建一次。临时表总是存在的,他们作为对象存在于数据字典中,并且总是保持为空,直到有会话在其中放入数据
 

1 创建临时表
 


<div class="dp-highlighter" style="width: 679px; margin-left: 9px; padding-top: 1px; padding-right: 1px; padding-bottom: 1px; padding-left: 1px; line-height: 25px; text-align: left;"><div class="bar"><div class="tools" style="padding-top: 3px; padding-right: 3px; padding-bottom: 3px; padding-left: 3px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font-weight: bold;">Sql代码
您需要登录后才可以回帖 登录 | 立即注册 新浪微博账号登陆

本版积分规则

快速回复 返回顶部 返回列表