Create Table Player
Create Table Player
exception
declare
kitno exception;
kit number;
playern varchar2(40);
begin
kit:=:kit;
if kit>99 then
raise kitno;
end if;
dbms_output.put_line(playern);
exception
begin
if sql%found then
end if;
end;
declare
a number;
begin
a:=:a;
if sql%found then
end if;
end;
declare
a number;
b number;
begin
a:=:no_of_year;
b:=sql%rowcount;
dbms_output.put_line(b || ' Players have extended their contract ');
end;
declare
a number;
b varchar2(30);
begin
open c1;
loop
fetch c1 into b;
dbms_output.put_line(b);
end loop;
a:=c1%rowcount;
close c1;
end;
declare
a number;
begin
for i in c1 loop
dbms_output.put_line(i.name || ' Plays For ' || i.nationality || ' AND ' || i.club);
a:=c1%rowcount;
end loop;
end;
declare
a number;
b player.name%type;
begin
open c1(:d);
loop
fetch c1 into b;
dbms_output.put_line(b);
end loop;
a:=c1%rowcount;
close c1;
end;
create or replace procedure RemovePlayer(playerid number) as
begin
end;
begin
end;
begin
end;
begin
AddP(5,'Marcelo','Brazil',14,'RM',2007,2021);
end;
b number;
begin
return b;
declare
a number;
begin
a:=ContractYears(1);
dbms_output.put_line(a);
end;
begin
dbms_output.put_line(b);
return b;
end;
declare
a number;
begin
a:=CountPlayers('RM');
end;
end;
DECLARE
i player.player_id%TYPE;
BEGIN
END IF;
EXCEPTION
NULL;
END;
BEGIN
IF :NEW.contract_start_year>:NEW.contract_end_year THEN
RAISE_APPLICATION_ERROR(-20000,'RECORD IS ILLEGAL');
END IF;
END;
BEGIN
END IF;
END;