create or replace package show body is
declare 
      display varchar2(150):='this is test!';
procedure show_display()
is 
begin 
  dbms_output.put_line(display);
end show_display;
end show;

解决方案 »

  1.   

    create or replace package  body show is      display varchar2(150):='this is test!';     
    procedure show_display
    is 
    begin 
      dbms_output.put_line(display);
    end show_display;
    end show;
      

  2.   

    create or replace package show body is
    procedure show_display() as
          display varchar2(150):='this is test!';
    procedure show_display()
    is 
    begin 
      dbms_output.put_line(display);
    end show_display;
    end show;
      

  3.   

    不好意思,上面的错了
    create or replace package show body is
    procedure show_display() as
          display varchar2(150);begin 
    display :='this is test!';  dbms_output.put_line(display);
    end show_display;
    end show;