现在的位置: 首页 > 综合 > 正文

%ROWTYPE

2013年09月21日 ⁄ 综合 ⁄ 共 280字 ⁄ 字号 评论关闭

create or replace procedure stu_record
(v_student_Id in varchar2) is
recstudents%ROWTYPE;
begin
select student_Id ,student_name
into rec.student_Id,rec.student_name from students
where student_id=v_student_Id ;
dbms_output.put_line(rec.student_id);
dbms_output.put_line(rec.student_name);
end stu_record;

抱歉!评论已关闭.