无法修复错误(43,4):PL / SQL:忽略SQL语句

时间:2015-03-10 21:52:29

标签: sql oracle oracle-sqldeveloper

我找不到:

  

错误(43,4)PL / SQL:忽略SQL语句

  

错误(43,49):PL / SQL:ORA-00947:值不够

请帮忙。

CREATE OR REPLACE PACKAGE BODY TEAM_pkg AS    
procedure displayInfo(tid TEAM.team_ID%type) is
dis teamrecord;
chec varchar(20);
BEGIN

SELECT tname INTO chec FROM Team 
  WHERE team.team_id = tid; 
  IF chec IS NULL  then
  raise team_not_found;
  else
select * into dis from team where team_id = tid;
dbms_output.put_line(dis.teamid ||' '||dis.tname||' '||dis.rk||' '||dis.ct);

end if;
EXCEPTION
WHEN team_not_found THEN
Rollback; -- Oracle performs an implicit rollback once and exception is  raised.
dbms_output.put_line('Team not Found!');
WHEN NO_DATA_FOUND THEN
Rollback; -- Oracle performs an implicit rollback once and exception is raised.
dbms_output.put_line('Team not Found!');
end;

1 个答案:

答案 0 :(得分:0)

你缺少包裹身体的结束。