luozhiyong131 发表于 2011-12-22 08:54

Oracle子程序【课堂笔记】

<DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">存储过程与函数特点<SPAN lang=EN-US></SPAN></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: #ff8000; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">1.</SPAN><SPAN style="BACKGROUND: white; COLOR: #ff8000; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">存放在服务器端,代码共享,增加了代码开发效率</SPAN><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'"></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: #ff8000; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">2.</SPAN><SPAN style="BACKGROUND: white; COLOR: #ff8000; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">存储过程能隐藏表的基本信息,可以简化语句</SPAN><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'"></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: #ff8000; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">3.</SPAN><SPAN style="BACKGROUND: white; COLOR: #ff8000; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">减少网络流量</SPAN><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'"></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'"></SPAN>&nbsp;</P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">存储过程创建语法<SPAN lang=EN-US></SPAN></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">create or repalce procedure procedurename</SPAN><B style="mso-bidi-font-weight: normal"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">[(</SPAN></B><SPAN style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">参数列表</SPAN><B style="mso-bidi-font-weight: normal"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">)]</SPAN></B><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'"></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">as</SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: green; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">//</SPAN><SPAN style="BACKGROUND: white; COLOR: green; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">声明变量或自定以数据类型<SPAN lang=EN-US></SPAN></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">begin</SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: green; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">//</SPAN><SPAN style="BACKGROUND: white; COLOR: green; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">语句代码<SPAN lang=EN-US></SPAN></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">exception</SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'"></SPAN>&nbsp;</P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">end</SPAN><B style="mso-bidi-font-weight: normal"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">;</SPAN></B><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'"></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'"></SPAN>&nbsp;</P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'"></SPAN>&nbsp;</P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">create or replace procedure emp_pro1</SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">as</SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">vename emp</SPAN><B style="mso-bidi-font-weight: normal"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">.</SPAN></B><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">ename</SPAN><B style="mso-bidi-font-weight: normal"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">%</SPAN></B><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">type</SPAN><B style="mso-bidi-font-weight: normal"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">;</SPAN></B><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'"></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">vsal<SPAN style="mso-spacerun: yes">&nbsp;&nbsp; </SPAN>emp</SPAN><B style="mso-bidi-font-weight: normal"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">.</SPAN></B><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">sal</SPAN><B style="mso-bidi-font-weight: normal"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">%</SPAN></B><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">type</SPAN><B style="mso-bidi-font-weight: normal"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">;</SPAN></B><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'"></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">begin</SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'"><SPAN style="mso-spacerun: yes">&nbsp; </SPAN>select ename</SPAN><B style="mso-bidi-font-weight: normal"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">,</SPAN></B><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">sal into vename</SPAN><B style="mso-bidi-font-weight: normal"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">,</SPAN></B><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">vsal</SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'"><SPAN style="mso-spacerun: yes">&nbsp; </SPAN>from emp</SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'"><SPAN style="mso-spacerun: yes">&nbsp; </SPAN>where empno</SPAN><B style="mso-bidi-font-weight: normal"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">=</SPAN></B><SPAN lang=EN-US style="BACKGROUND: white; COLOR: #ff8000; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">7521</SPAN><B style="mso-bidi-font-weight: normal"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">;</SPAN></B><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'"></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'"><SPAN style="mso-spacerun: yes">&nbsp; </SPAN>dbms_output</SPAN><B style="mso-bidi-font-weight: normal"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">.</SPAN></B><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">put_line</SPAN><B style="mso-bidi-font-weight: normal"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">(</SPAN></B><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">vename</SPAN><B style="mso-bidi-font-weight: normal"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">||</SPAN></B><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">vsal</SPAN><B style="mso-bidi-font-weight: normal"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">);</SPAN></B><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'"></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">end</SPAN><B style="mso-bidi-font-weight: normal"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">;</SPAN></B><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'"> </SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'"></SPAN>&nbsp;</P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'"></SPAN>&nbsp;</P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">调用存储过程代码<SPAN lang=EN-US></SPAN></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">begin</SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">emp_pro1</SPAN><B style="mso-bidi-font-weight: normal"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">;</SPAN></B><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'"></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">end</SPAN><B style="mso-bidi-font-weight: normal"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">;</SPAN></B><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'"></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'"></SPAN>&nbsp;</P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">有参数存储过程。参数的数据类型不能指定大小<SPAN lang=EN-US></SPAN></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'"></SPAN>&nbsp;</P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">create or replace procedure emp_pro2</SPAN><B style="mso-bidi-font-weight: normal"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">(</SPAN></B><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">vdeptno emp</SPAN><B style="mso-bidi-font-weight: normal"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">.</SPAN></B><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">deptno</SPAN><B style="mso-bidi-font-weight: normal"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">%</SPAN></B><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">type</SPAN><B style="mso-bidi-font-weight: normal"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">)</SPAN></B><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'"></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">as</SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">cursor emp_cur is select<SPAN style="mso-spacerun: yes">&nbsp; </SPAN></SPAN><B style="mso-bidi-font-weight: normal"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">*</SPAN></B><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'"><SPAN style="mso-spacerun: yes">&nbsp; </SPAN>from emp<SPAN style="mso-spacerun: yes">&nbsp; </SPAN>where deptno</SPAN><B style="mso-bidi-font-weight: normal"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">=</SPAN></B><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">vdeptno</SPAN><B style="mso-bidi-font-weight: normal"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">;</SPAN></B><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'"></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">begin</SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'"><SPAN style="mso-spacerun: yes">&nbsp; </SPAN></SPAN><B style="mso-bidi-font-weight: normal"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">for</SPAN></B><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'"> vrow in emp_cur loop</SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp; </SPAN>dbms_output</SPAN><B style="mso-bidi-font-weight: normal"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">.</SPAN></B><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">put_line</SPAN><B style="mso-bidi-font-weight: normal"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">(</SPAN></B><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">vrow</SPAN><B style="mso-bidi-font-weight: normal"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">.</SPAN></B><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">ename</SPAN><B style="mso-bidi-font-weight: normal"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">);</SPAN></B><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'"></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'"><SPAN style="mso-spacerun: yes">&nbsp; </SPAN>end loop</SPAN><B style="mso-bidi-font-weight: normal"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">;</SPAN></B><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'"> </SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">end</SPAN><B style="mso-bidi-font-weight: normal"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">;</SPAN></B><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'"></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'"></SPAN>&nbsp;</P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">begin</SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">emp_pro2</SPAN><B style="mso-bidi-font-weight: normal"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">(</SPAN></B><SPAN lang=EN-US style="BACKGROUND: white; COLOR: #ff8000; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">20</SPAN><B style="mso-bidi-font-weight: normal"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">);</SPAN></B><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'"></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">end</SPAN><B style="mso-bidi-font-weight: normal"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">;</SPAN></B><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'"></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'"></SPAN>&nbsp;</P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">存储过程参数的模式<SPAN lang=EN-US></SPAN></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">in<SPAN style="mso-spacerun: yes">&nbsp; </SPAN></SPAN><SPAN style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">输入 默认为模式<SPAN lang=EN-US></SPAN></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">out<SPAN style="mso-spacerun: yes">&nbsp; </SPAN></SPAN><SPAN style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">输出<SPAN lang=EN-US></SPAN></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">inout </SPAN><SPAN style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">输入输出<SPAN lang=EN-US></SPAN></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'"></SPAN>&nbsp;</P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">create or replace procedure emp_pro3</SPAN><B style="mso-bidi-font-weight: normal"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">(</SPAN></B><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">vdeptno in emp</SPAN><B style="mso-bidi-font-weight: normal"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">.</SPAN></B><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">deptno</SPAN><B style="mso-bidi-font-weight: normal"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">%</SPAN></B><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">type</SPAN><B style="mso-bidi-font-weight: normal"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">)</SPAN></B><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'"></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">as</SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">vename emp</SPAN><B style="mso-bidi-font-weight: normal"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">.</SPAN></B><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">ename</SPAN><B style="mso-bidi-font-weight: normal"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">%</SPAN></B><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">type</SPAN><B style="mso-bidi-font-weight: normal"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">;</SPAN></B><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'"></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">begin</SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><B style="mso-bidi-font-weight: normal"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">--</SPAN></B><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'"><SPAN style="mso-spacerun: yes">&nbsp; </SPAN>vdeptno</SPAN><B style="mso-bidi-font-weight: normal"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">:=</SPAN></B><SPAN lang=EN-US style="BACKGROUND: white; COLOR: #ff8000; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">7521</SPAN><B style="mso-bidi-font-weight: normal"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">;</SPAN></B><SPAN lang=EN-US style="BACKGROUND: white; COLOR: green; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">//</SPAN><SPAN style="BACKGROUND: white; COLOR: green; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">错误<SPAN lang=EN-US> in</SPAN>模式参数是只读参数<SPAN lang=EN-US></SPAN></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'"><SPAN style="mso-spacerun: yes">&nbsp; </SPAN>select ename into vename<SPAN style="mso-spacerun: yes">&nbsp; </SPAN>from emp<SPAN style="mso-spacerun: yes">&nbsp; </SPAN>where empno</SPAN><B style="mso-bidi-font-weight: normal"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">=</SPAN></B><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">vdeptno</SPAN><B style="mso-bidi-font-weight: normal"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">;</SPAN></B><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'"></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'"><SPAN style="mso-spacerun: yes">&nbsp; </SPAN>dbms_output</SPAN><B style="mso-bidi-font-weight: normal"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">.</SPAN></B><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">put_line</SPAN><B style="mso-bidi-font-weight: normal"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">(</SPAN></B><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">vename</SPAN><B style="mso-bidi-font-weight: normal"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">);</SPAN></B><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'"></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">end</SPAN><B style="mso-bidi-font-weight: normal"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">;</SPAN></B><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'"></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'"></SPAN>&nbsp;</P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">create or replace procedure emp_pro4</SPAN><B style="mso-bidi-font-weight: normal"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">(</SPAN></B><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">vsal out emp</SPAN><B style="mso-bidi-font-weight: normal"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">.</SPAN></B><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">sal</SPAN><B style="mso-bidi-font-weight: normal"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">%</SPAN></B><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">type</SPAN><B style="mso-bidi-font-weight: normal"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">)</SPAN></B><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'"></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">as</SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">begin</SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'"><SPAN style="mso-spacerun: yes">&nbsp; </SPAN>select sal into vsal<SPAN style="mso-spacerun: yes">&nbsp; </SPAN>from emp<SPAN style="mso-spacerun: yes">&nbsp; </SPAN>where empno</SPAN><B style="mso-bidi-font-weight: normal"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">=</SPAN></B><SPAN lang=EN-US style="BACKGROUND: white; COLOR: #ff8000; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">7521</SPAN><B style="mso-bidi-font-weight: normal"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">;</SPAN></B><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'"> </SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">end</SPAN><B style="mso-bidi-font-weight: normal"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">;</SPAN></B><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'"></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'"></SPAN>&nbsp;</P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">declare</SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">vsal<SPAN style="mso-spacerun: yes">&nbsp; </SPAN>number</SPAN><B style="mso-bidi-font-weight: normal"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">(</SPAN></B><SPAN lang=EN-US style="BACKGROUND: white; COLOR: #ff8000; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">4</SPAN><B style="mso-bidi-font-weight: normal"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">);</SPAN></B><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'"></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">begin</SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">emp_pro4</SPAN><B style="mso-bidi-font-weight: normal"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">(</SPAN></B><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">vsal</SPAN><B style="mso-bidi-font-weight: normal"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">);</SPAN></B><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'"></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">dbms_output</SPAN><B style="mso-bidi-font-weight: normal"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">.</SPAN></B><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">put_line</SPAN><B style="mso-bidi-font-weight: normal"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">(</SPAN></B><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">vsal</SPAN><B style="mso-bidi-font-weight: normal"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">);</SPAN></B><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'"></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">end</SPAN><B style="mso-bidi-font-weight: normal"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">;</SPAN></B><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'"></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'"></SPAN>&nbsp;</P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">create or replace procedure emp_pro5</SPAN><B style="mso-bidi-font-weight: normal"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">(</SPAN></B><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">vsal in out emp</SPAN><B style="mso-bidi-font-weight: normal"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">.</SPAN></B><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">sal</SPAN><B style="mso-bidi-font-weight: normal"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">%</SPAN></B><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">type</SPAN><B style="mso-bidi-font-weight: normal"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">)</SPAN></B><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'"></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">as</SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">begin</SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'"><SPAN style="mso-spacerun: yes">&nbsp; </SPAN>select sal into vsal<SPAN style="mso-spacerun: yes">&nbsp;&nbsp; </SPAN>from emp<SPAN style="mso-spacerun: yes">&nbsp; </SPAN>where empno</SPAN><B style="mso-bidi-font-weight: normal"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">=</SPAN></B><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">vsal</SPAN><B style="mso-bidi-font-weight: normal"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">;</SPAN></B><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'"></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">end</SPAN><B style="mso-bidi-font-weight: normal"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">;</SPAN></B><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'"></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'"></SPAN>&nbsp;</P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">declare</SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">vsal emp</SPAN><B style="mso-bidi-font-weight: normal"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">.</SPAN></B><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">sal</SPAN><B style="mso-bidi-font-weight: normal"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">%</SPAN></B><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">type</SPAN><B style="mso-bidi-font-weight: normal"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">;</SPAN></B><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'"></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">begin</SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'"><SPAN style="mso-spacerun: yes">&nbsp; </SPAN>vsal</SPAN><B style="mso-bidi-font-weight: normal"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">:=</SPAN></B><SPAN lang=EN-US style="BACKGROUND: white; COLOR: #ff8000; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">7521</SPAN><B style="mso-bidi-font-weight: normal"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">;</SPAN></B><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'"></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'"><SPAN style="mso-spacerun: yes">&nbsp; </SPAN>emp_pro5</SPAN><B style="mso-bidi-font-weight: normal"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">(</SPAN></B><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">vsal</SPAN><B style="mso-bidi-font-weight: normal"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">);</SPAN></B><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'"></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'"><SPAN style="mso-spacerun: yes">&nbsp; </SPAN>dbms_output</SPAN><B style="mso-bidi-font-weight: normal"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">.</SPAN></B><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">put_line</SPAN><B style="mso-bidi-font-weight: normal"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">(</SPAN></B><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">vsal</SPAN><B style="mso-bidi-font-weight: normal"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">);</SPAN></B><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'"></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">end</SPAN><B style="mso-bidi-font-weight: normal"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">;</SPAN></B><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'"></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'"></SPAN>&nbsp;</P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">函数<SPAN lang=EN-US></SPAN></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">create<SPAN style="mso-spacerun: yes">&nbsp; </SPAN>or repalce function funname</SPAN><B style="mso-bidi-font-weight: normal"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">[(</SPAN></B><SPAN style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">参数列表</SPAN><B style="mso-bidi-font-weight: normal"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">)]</SPAN></B><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'"></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><B style="mso-bidi-font-weight: normal"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">return</SPAN></B><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'"> </SPAN><SPAN style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">数据类型<SPAN lang=EN-US></SPAN></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">as</SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">begin</SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'"></SPAN>&nbsp;</P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN></SPAN><B style="mso-bidi-font-weight: normal"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">return</SPAN></B><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'"> </SPAN><B style="mso-bidi-font-weight: normal"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">;</SPAN></B><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'"></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">end</SPAN><B style="mso-bidi-font-weight: normal"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">;</SPAN></B><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'"></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'"></SPAN>&nbsp;</P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">create or replace function emp_fun1</SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><B style="mso-bidi-font-weight: normal"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">return</SPAN></B><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'"> varchar2</SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">as</SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'"><SPAN style="mso-spacerun: yes">&nbsp;</SPAN>vename varchar2</SPAN><B style="mso-bidi-font-weight: normal"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">(</SPAN></B><SPAN lang=EN-US style="BACKGROUND: white; COLOR: #ff8000; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">10</SPAN><B style="mso-bidi-font-weight: normal"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">);</SPAN></B><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'"></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">begin</SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp; </SPAN>select ename into vename<SPAN style="mso-spacerun: yes">&nbsp;&nbsp; </SPAN>from emp<SPAN style="mso-spacerun: yes">&nbsp;&nbsp; </SPAN>where empno</SPAN><B style="mso-bidi-font-weight: normal"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">=</SPAN></B><SPAN lang=EN-US style="BACKGROUND: white; COLOR: #ff8000; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">7521</SPAN><B style="mso-bidi-font-weight: normal"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">;</SPAN></B><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'"></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp; </SPAN></SPAN><B style="mso-bidi-font-weight: normal"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">return</SPAN></B><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'"> vename</SPAN><B style="mso-bidi-font-weight: normal"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">;</SPAN></B><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'"></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">end</SPAN><B style="mso-bidi-font-weight: normal"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">;</SPAN></B><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'"></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'"></SPAN>&nbsp;</P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">select emp_fun1 from dual</SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'"></SPAN>&nbsp;</P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">declare</SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">ret varchar2</SPAN><B style="mso-bidi-font-weight: normal"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">(</SPAN></B><SPAN lang=EN-US style="BACKGROUND: white; COLOR: #ff8000; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">10</SPAN><B style="mso-bidi-font-weight: normal"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">);</SPAN></B><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'"></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">begin</SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'"><SPAN style="mso-spacerun: yes">&nbsp; </SPAN>ret</SPAN><B style="mso-bidi-font-weight: normal"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">:=</SPAN></B><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">emp_fun1</SPAN><B style="mso-bidi-font-weight: normal"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">;</SPAN></B><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'"></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'"><SPAN style="mso-spacerun: yes">&nbsp; </SPAN>dbms_output</SPAN><B style="mso-bidi-font-weight: normal"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">.</SPAN></B><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">put_line</SPAN><B style="mso-bidi-font-weight: normal"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">(</SPAN></B><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">ret</SPAN><B style="mso-bidi-font-weight: normal"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">);</SPAN></B><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'"></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">end</SPAN><B style="mso-bidi-font-weight: normal"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">;</SPAN></B><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'"></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'"></SPAN>&nbsp;</P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">create or replace function emp_fun2</SPAN><B style="mso-bidi-font-weight: normal"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">(</SPAN></B><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">vempno number</SPAN><B style="mso-bidi-font-weight: normal"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">)</SPAN></B><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'"></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><B style="mso-bidi-font-weight: normal"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">return</SPAN></B><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'"> varchar2</SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">as</SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'"><SPAN style="mso-spacerun: yes">&nbsp;</SPAN>vename varchar2</SPAN><B style="mso-bidi-font-weight: normal"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">(</SPAN></B><SPAN lang=EN-US style="BACKGROUND: white; COLOR: #ff8000; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">10</SPAN><B style="mso-bidi-font-weight: normal"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">);</SPAN></B><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'"></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">begin</SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp; </SPAN>select ename into vename<SPAN style="mso-spacerun: yes">&nbsp;&nbsp; </SPAN>from emp<SPAN style="mso-spacerun: yes">&nbsp;&nbsp; </SPAN>where empno</SPAN><B style="mso-bidi-font-weight: normal"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">=</SPAN></B><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">vempno</SPAN><B style="mso-bidi-font-weight: normal"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">;</SPAN></B><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'"></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp; </SPAN></SPAN><B style="mso-bidi-font-weight: normal"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">return</SPAN></B><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'"> vename</SPAN><B style="mso-bidi-font-weight: normal"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">;</SPAN></B><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'"></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">end</SPAN><B style="mso-bidi-font-weight: normal"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">;</SPAN></B><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'"></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'"></SPAN>&nbsp;</P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">select emp_fun2</SPAN><B style="mso-bidi-font-weight: normal"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">(</SPAN></B><SPAN lang=EN-US style="BACKGROUND: white; COLOR: #ff8000; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">7521</SPAN><B style="mso-bidi-font-weight: normal"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">)</SPAN></B><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'"> from dual</SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'"></SPAN>&nbsp;</P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'"></SPAN>&nbsp;</P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">函数也支持三种参数模式<SPAN lang=EN-US>in out</SPAN></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'"></SPAN>&nbsp;</P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">create or replace function emp_fun3</SPAN><B style="mso-bidi-font-weight: normal"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">(</SPAN></B><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">vempno in out emp</SPAN><B style="mso-bidi-font-weight: normal"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">.</SPAN></B><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">empno</SPAN><B style="mso-bidi-font-weight: normal"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">%</SPAN></B><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">type</SPAN><B style="mso-bidi-font-weight: normal"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">)</SPAN></B><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'"></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">as</SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">vdeptno emp</SPAN><B style="mso-bidi-font-weight: normal"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">.</SPAN></B><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">deptno</SPAN><B style="mso-bidi-font-weight: normal"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">%</SPAN></B><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">type</SPAN><B style="mso-bidi-font-weight: normal"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">;</SPAN></B><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'"></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">begin</SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp; </SPAN>select sal</SPAN><B style="mso-bidi-font-weight: normal"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">,</SPAN></B><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">deptno<SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN>into vempno</SPAN><B style="mso-bidi-font-weight: normal"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">,</SPAN></B><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">vdeptno<SPAN style="mso-spacerun: yes">&nbsp;&nbsp; </SPAN>from emp<SPAN style="mso-spacerun: yes">&nbsp;&nbsp; </SPAN>where empno</SPAN><B style="mso-bidi-font-weight: normal"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">=</SPAN></B><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">vempno</SPAN><B style="mso-bidi-font-weight: normal"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">;</SPAN></B><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'"></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp; </SPAN></SPAN><B style="mso-bidi-font-weight: normal"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">return</SPAN></B><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'"> vdeptno</SPAN><B style="mso-bidi-font-weight: normal"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">;</SPAN></B><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'"></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">end</SPAN><B style="mso-bidi-font-weight: normal"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">;</SPAN></B><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'"></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'"></SPAN>&nbsp;</P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">declare</SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">vempno emp</SPAN><B style="mso-bidi-font-weight: normal"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">.</SPAN></B><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">empno</SPAN><B style="mso-bidi-font-weight: normal"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">%</SPAN></B><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">type</SPAN><B style="mso-bidi-font-weight: normal"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">;</SPAN></B><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'"></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">ret<SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>number</SPAN><B style="mso-bidi-font-weight: normal"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">(</SPAN></B><SPAN lang=EN-US style="BACKGROUND: white; COLOR: #ff8000; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">4</SPAN><B style="mso-bidi-font-weight: normal"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">);</SPAN></B><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'"></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">begin</SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp; </SPAN>vempno</SPAN><B style="mso-bidi-font-weight: normal"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">:=</SPAN></B><SPAN lang=EN-US style="BACKGROUND: white; COLOR: #ff8000; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">7521</SPAN><B style="mso-bidi-font-weight: normal"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">;</SPAN></B><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'"></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp; </SPAN>ret</SPAN><B style="mso-bidi-font-weight: normal"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">:=</SPAN></B><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">emp_fun3</SPAN><B style="mso-bidi-font-weight: normal"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">(</SPAN></B><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">vempno</SPAN><B style="mso-bidi-font-weight: normal"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">);</SPAN></B><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'"></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp; </SPAN>dbms_output</SPAN><B style="mso-bidi-font-weight: normal"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">.</SPAN></B><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">put_line</SPAN><B style="mso-bidi-font-weight: normal"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">(</SPAN></B><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">ret</SPAN><B style="mso-bidi-font-weight: normal"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">);</SPAN></B><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'"></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp; </SPAN>dbms_output</SPAN><B style="mso-bidi-font-weight: normal"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">.</SPAN></B><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">put_line</SPAN><B style="mso-bidi-font-weight: normal"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">(</SPAN></B><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">vempno</SPAN><B style="mso-bidi-font-weight: normal"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">);</SPAN></B><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'"></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">end</SPAN><B style="mso-bidi-font-weight: normal"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: navy; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">;</SPAN></B><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'"></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'"></SPAN>&nbsp;</P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'"></SPAN>&nbsp;</P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">存储过程与函数区别<SPAN lang=EN-US></SPAN></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: #ff8000; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">1.</SPAN><SPAN style="BACKGROUND: white; COLOR: #ff8000; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">函数一定要有<SPAN lang=EN-US>return</SPAN></SPAN><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'"> </SPAN><SPAN style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">返回,存储过程不需要<SPAN lang=EN-US></SPAN></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'"></SPAN>&nbsp;</P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'"></SPAN>&nbsp;</P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">删除存储过程与函数<SPAN lang=EN-US></SPAN></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">drop procedure procedurename</SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-highlight: white; mso-fareast-font-family: 'Courier New'">drop function<SPAN style="mso-spacerun: yes">&nbsp; </SPAN>funcname</SPAN></P></DIV>
页: [1]
查看完整版本: Oracle子程序【课堂笔记】