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
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
--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
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
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
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
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
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
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
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