create or replace procedure test211(idd IN number,
names varchar2,
NAME2 OUT VARCHAR,
X IN NUMBER,
Y IN OUT NUMBER) is
begin
insert into test21 values (idd, names);
SELECT NAMES INTO NAME2 FROM TEST21 T WHERE T.IDD = IDD;
IF X = 1 THEN
Y := 1;
ELSE
Y := 2;
END IF;
end;
DECLARE IDD NUMBER;
NAMES VARCHAR2(55);
NAME2 VARCHAR2(20);
X NUMBER;
Y NUMBER;
BEGIN
IDD := 81;
NAMES := 'BHANU';
X := 1;
Y := 0;
test211(IDD, NAMES, NAME2, X, Y);
END;
names varchar2,
NAME2 OUT VARCHAR,
X IN NUMBER,
Y IN OUT NUMBER) is
begin
insert into test21 values (idd, names);
SELECT NAMES INTO NAME2 FROM TEST21 T WHERE T.IDD = IDD;
IF X = 1 THEN
Y := 1;
ELSE
Y := 2;
END IF;
end;
DECLARE IDD NUMBER;
NAMES VARCHAR2(55);
NAME2 VARCHAR2(20);
X NUMBER;
Y NUMBER;
BEGIN
IDD := 81;
NAMES := 'BHANU';
X := 1;
Y := 0;
test211(IDD, NAMES, NAME2, X, Y);
END;