postgres@:5432/postgres-2865#=\sf student_delete_trigger
CREATE OR REPLACE FUNCTION public.student_delete_trigger()
RETURNS trigger
LANGUAGE plpgsql
AS $function$
begin
delete from score where student_no=old.student_no;
return old;
end;
$function$
postgres@:5432/postgres-2865#=