<div id="codeSnippetWrapper"> <div style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New',courier,monospace; direction: ltr; border-top-style: none; color: black; font-size: 10pt; border-left-style: none; overflow: visible; padding-top: 0px" id="codeSnippet">
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New',monospace; direction: ltr; border-top-style: none; color: black; font-size: 10pt; border-left-style: none; overflow: visible; padding-top: 0px">--<span style="color: #0000ff">create <span style="color: #0000ff">or replace 创建或替换,如果存在就替换,不存在就创建
replace p
c
* dept2 ;
row_record c loop
(row_record.deptno = 30)
dept2 dname = substr(dname,length(dname) - 3) c;
;
loop;
;
p;输入参数,不带in 默认输入参数
输出参数同时带的是输入输入参数
replace p2(
number,number,monospace; direction: ltr; border-top-style: none; color: black; font-size: 10pt; border-left-style: none; overflow: visible; padding-top: 0px"> s_temp number
(a > b);
调用存储过程删除一个表的过程replace drop_table(tname varchar2)
:= 0;(*) total user_tables
table_name = (tname);
total >= 1||tname; --此处必须用动态sql
;
* user_tables;
replace pro_emp(sEmpno emp.empno%type,sLevel )
c * emp mgr = sEmpno;
(255);i 1..sLevel loop
;row_data c loop
loop;;* emp;
;