存储过程源代码.docx
《存储过程源代码.docx》由会员分享,可在线阅读,更多相关《存储过程源代码.docx(2页珍藏版)》请在淘文阁 - 分享文档赚钱的网站上搜索。
1、存储过程源代码.创立无参数过程create or replace procedure output_timeisbegindbrns_session.set_nls(,nls_data_formatVnyyyy-mm-dd hh24:mi:ssn,);dbms_output.put_line(sysdate);end;上述操作创立过程output_time,该过程按照设定的格式输出系统时间。set serveroutput onexec output_time;.创立带输入参数的过程create or replace procedure add_tablel(id table 1 .id%ty
2、pe,name table 1 .name%type) isbegininsert into table 1values(id,name);end;调用过程,在调用时必须为参数赋值exec add_table 1(5,Rincon*);select * from table 1;.创立带有输入输出参数的过程create or replace procedure divide(num l in out number,num2 in out number) is verl number;ver2 number;beginverl :=trunc(numl/num2);ver2:=mod(num 1
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 存储 过程 源代码
限制150内