create or replace procedure DB_5_1(out_grid out sys_refcursor)
as
begin
open out_grid for select student_id,coach_name,ds_name 
from  STUDYRECORD where VALIDTIME=0 and to_char(begin_time,'yy')=to_char(sysdate,'yy') and end_time<=sysdate ;
end;
我刚学习oracle存储过程,但是现在写了这个存储过程,执行的时候提示编译通过,没有结果显示,是不是要另外写什么语句来执行才能显示结果的?