以下存储过程编译时报错,请教大家是什么原因:
请教大家以下存储过程为何会出错:
create or replace package ytest as
type t_user_type is record(id t_user.id%TYPE,sex t_user.sex%TYPE);
function stu(id in t_user.id%TYPE)return t_user_type;
end ytest;create or replace package body ytest as
function stu(id in t_user.id%TYPE)return t_user_type
is r t_user_type;
begin
     select id,sex into r
     from t_user a where a.id=3;     return r;
end stu;
end ytest;
错误信息为:pls:00103出现符号"create"