执行后显示:
PACKAGE BODY TEMP_PACKAGE的编译错误
错误:PLS-00103:预期以下情况之一时遇到符号“文件结束”: 开始结束功能实用程序 行:17
create or replace package body TEMP_PACKAGE is
procedure insert_temp
(aaCode number,aaName varchar2, aaAddress varchar2,
aaPhone varchar2, aaState varchar2 )
is
begin
INSERT INTO temp_employee_azizbek
(code, aadName, aadAddress, aadPhone, aadState )
VALUES (aaCode, aaName,aaAddress,aaPhone,aaState);
end;
我怎么了?
答案 0 :(得分:0)
缺少额外的end
,除了软件包definition
之外,您还需要软件包header
(body
):
create or replace package TEMP_PACKAGE is
procedure insert_temp(aaCode number,aaName varchar2, aaAddress varchar2,
aaPhone varchar2, aaState varchar2 );
end TEMP_PACKAGE;
/
create or replace package body TEMP_PACKAGE is
procedure insert_temp(aaCode number,aaName varchar2, aaAddress varchar2,
aaPhone varchar2, aaState varchar2 ) is
begin
INSERT INTO temp_employee_azizbek
(code, aadName, aadAddress, aadPhone, aadState )
VALUES (aaCode, aaName,aaAddress,aaPhone,aaState);
end;
end TEMP_PACKAGE;
/