码迷,mamicode.com
首页 >  
搜索关键字:plsql 存储函数    ( 1865个结果
Oracle PLSQL Demo - 08.定义显式游标[Define CURSOR, Open, Fetch, Close CURSOR]
declare v_empno scott.emp.empno%type; v_sal scott.emp.sal%type; cursor cur_emp is select t.empno, t.sal from scott.emp t;begin op...
分类:数据库   时间:2015-06-29 23:47:12    阅读次数:153
Oracle PLSQL Demo - 14.定义定参数的显示游标
declare v_empno scott.emp.empno%type; v_sal scott.emp.sal%type; cursor cur_emp(v_empno number default 7369) is select t.empno, t.sal...
分类:数据库   时间:2015-06-29 23:46:37    阅读次数:198
Oracle PLSQL Demo - 18.02.管道function[查询零散的字段组成list管道返回] [字段必须对上]
--PACKAGECREATE OR REPLACE PACKAGE test_141215 is TYPE type_ref IS record( ENAME VARCHAR2(20), SAL NUMBER(10)); TYPE t_type_ref IS...
分类:数据库   时间:2015-06-29 23:45:37    阅读次数:151
Oracle PLSQL Demo - 06.LOOP循环,以IF判断退出[IF in LOOP]
declare v_sal number := 6000;begin loop v_sal := v_sal + 1; dbms_output.put_line(v_sal); if v_sal = 8000 then ...
分类:数据库   时间:2015-06-29 23:45:15    阅读次数:178
Oracle PLSQL Demo - 15.强类型REF游标[预先指定查询类型与返回类型]
declare Type ref_cur_emp IS REF CURSOR RETURN scott.emp%RowType; cur_emp ref_cur_emp; rec_emp cur_emp%RowType; v_sql varchar2(100) := 'sel...
分类:数据库   时间:2015-06-29 23:43:51    阅读次数:183
Oracle PLSQL Demo - 09.Open、Fetch遍历游标[Open, Fetch, Close Record CURSOR]
declare r_emp scott.emp%rowtype; cursor cur_emp is select t.* from scott.emp t;begin open cur_emp; loop fetch cur_emp ...
分类:数据库   时间:2015-06-29 23:42:44    阅读次数:174
Oracle PLSQL Demo - 01.定义变量、打印信息
declare v_sal number(5) := 6000;begin --if you could not see the output in console, you should set output on first use the command in command li...
分类:数据库   时间:2015-06-29 23:38:32    阅读次数:143
Oracle PLSQL Demo - 13.游标的各种属性[Found NotFound ISOpen RowCount CURSOR]
declare r_emp scott.emp%rowtype; cursor cur_emp is select t.* from scott.emp t;begin open cur_emp; if cur_emp%isopen then db...
分类:数据库   时间:2015-06-29 23:36:21    阅读次数:172
Oracle PLSQL Demo - 11.定义包头[Define PACKAGE]
CREATE OR REPLACE PACKAGE temp_package_demo is v_demo NUMBER(3); PROCEDURE p_demo_1(userid NUMBER DEFAULT v_demo, SAL number); FUNCTION f_dem...
分类:数据库   时间:2015-06-29 23:35:20    阅读次数:166
Oracle PLSQL Demo - 12.定义包体[Define PACKAGE BODY]
CREATE OR REPLACE PACKAGE BODY temp_package_demo is FUNCTION f_demo(userid NUMBER) RETURN BOOLEAN IS v_temp varchar2(1); BEGIN SEL...
分类:数据库   时间:2015-06-29 23:32:34    阅读次数:152
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!