createscottprocedure.sql

来自「Oracle 9i中文版基础培训教程」· SQL 代码 · 共 17 行

SQL
17
字号
Set  serveroutput on
create or replace procedure scott.tempprocedure(
   tempdeptno in scott.dept.deptno%type,
   tempdname out scott.dept.dname%type,
   temploc in out scott.dept.loc%type)as
   loc1   scott.dept.loc%type;
   dname1 scott.dept.dname%type;
begin
   select loc  into loc1
   from  scott.dept
   where  deptno=tempdeptno;
   select dname  into dname1
   from  scott.dept
   where  deptno=tempdeptno;
   temploc:='地址:'||loc1;
   tempdname:='姓名'||dname1;
end;

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?