10 2017 档案
摘要:参考博文: http://blog.csdn.net/vking_wang/article/details/9110899 预定义异常 常见ORACLE异常错误: 非预定义异常 oralce预定义的异常对应的是相应的错误,但是还会有其他错误,但是这些错误并没有预先定义异常,因此,在出现非预定义异常的时候,我们可以将自定义的异常与oracle错误关联起来, SQL> decla...
阅读全文
摘要:在insert语句中使用批量绑定 未使用for all的情况 declare type id_table_type is table of number(6) index by binary_integer; type name_table_type is table of varchar2(10) index by binary_integer; id_table...
阅读全文
摘要:直接上例子set serveroutput on; declare type a_varray_type is varray(10) of int; type nal_varray_type is varray(10) of a_varray_type; data nal_varray_type := nal_varray_type( a_varray_type(58,100,102)...
阅读全文
摘要:DECLARE n NUMBER := 10; PROCEDURE do_something ( n1 IN NUMBER) IS BEGIN dbms_output.put_line(n1); -- prints 10 --n1:=20; --illegal assignment. END; BEGIN do_something(n); do_someth...
阅读全文
摘要:参考博文:http://blog.csdn.net/zyz511919766/article/details/49335647 原来的SQL SELECT * FROM T_SOF_IMP a WHERE not exists (select 1 from t_sof_subscriber b where a.dn=b.dn); 优化之后的SQL select a.* fr...
阅读全文
摘要:参考:http://www.cnblogs.com/SharkBin/archive/2012/08/08/2627912.html 写法上:存储过程的参数列表可以有输入参数、输出参数、可输入输出的参数; 函数的参数列表只有输入参数,并且有return 。返回值上: 存储过程的返回值,可以有多个值, 函数的返回值,只有一个值。调用方式上: 存储...
阅读全文
摘要:参考博文: http://blog.itpub.net/29785807/viewspace-1273138/ http://www.cnblogs.com/kerrycode/archive/2013/03/18/2965747.html 创建序列 CREATE SEQUENCE seq1 START WITH 100 INCREMENT BY 10 MAXVALU...
阅读全文
摘要:License—– BEGIN LICENS...
阅读全文