Professional Documents
Culture Documents
PL SQL Variables
PL SQL Variables
PL SQL Variables
set serveroutput on
declare
--a Student2.sid%type :=&a;
--b Student2.sname%type:='&b';
mrec Student2%rowtype;
id Student2.sid%type:=&id;
begin
select sid,sname into mrec from Student2 where sid=id;
dbms_output.put_line(mrec.sid||' '||mrec.sname);
--insert into Student2 values(a,b);
end;
select * from Student2;