![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
ORACLE
文章平均质量分 74
ZhanYunQI
这个作者很懒,什么都没留下…
展开
-
表函数
1,简单的返回结果集 ----------------函数的参数是游标,返回值是嵌套表 create type ticker is table of varchar2(10);--返回的数据类型必须是模式级别的 create or replace function f1(cur sys_refcursor) return ticker is a ticker:=ticker();原创 2015-06-21 16:41:13 · 324 阅读 · 0 评论 -
oracle 集合的类型
集合的类型有三种:关联数组,varry,嵌套表 关联数组 只在PL/SQL中有效,无需初始化 ----------下标可以使用pls_integer declare type a is table of varchar2(10) index by pls_integer; l_row pls_integer; name a; begin name(1):=原创 2015-06-21 12:08:49 · 637 阅读 · 0 评论 -
Oracle 作业设置
I,概述 dbms_out.submit ( job out binary_integer,what in varchar2, next_date in date default sysdate, interval in varchar2 default 'null', no_parse in boolean default false, instance in binary_inte原创 2015-07-26 11:37:55 · 991 阅读 · 0 评论 -
ORACLE 中split功能 & 包
--包成员返回的嵌套表类型必须是模式级别的,不能是包级别的 create type source_str1 is table of varchar2(100); create or replace package test_pkg is type source_str is table of varchar2(100); function split_sub(split_v原创 2015-08-01 16:49:16 · 677 阅读 · 0 评论 -
sqlplus相关
1,/ 表示上次执行的命令 如: insert into aa values('a',1); / 那么sqlplus会执行两次插入操作 2,list list 列出所有缓冲区的命令 list * 列出当前的缓冲区命令 list 3 列出缓冲区的第三条命令 3,run 显示缓冲区的命令,然后执行 3,get get file 用sqlplus查看文件原创 2015-08-01 09:43:29 · 285 阅读 · 0 评论 -
ORACLE的闪回
ORACLE的闪回有三种实现方式 1, 回收站技术 当参数设置为ON的时候可以使用回收站的闪回功能,使用的语法为: 查询该功能开启与否的语法为: 该功能存在以下限制: 1, 需要闪回的对象不能属于系统用户 2, ORACLE并不能保证,删除的对象存在于回收站,也并不能做时间上的保证 2, 使用flahback archive对象 该技术用于特定的对象使用闪回功能。F原创 2016-07-04 10:06:28 · 449 阅读 · 0 评论