Skip to main content
added 11 characters in body
Source Link
Paul White
  • 90.3k
  • 30
  • 424
  • 663

This is a 4th option, using out paramtersparameters?

create or replace function getLicenseStatus
    (in_license_no varchar2, l_status out varchar2, l_status_dt out varchar2)
    as
begin
    SELECT status, status_dt 
       into into l_status, l_status_dt 
    from tbl_license 
    where licence_no=in_license_no;
end;

This is a 4th option, using out paramters?

create or replace function getLicenseStatus(in_license_no varchar2, l_status out varchar2, l_status_dt out varchar2)
    as
begin
    SELECT status, status_dt 
       into into l_status, l_status_dt 
    from tbl_license 
    where licence_no=in_license_no;
end;

This is a 4th option, using out parameters?

create or replace function getLicenseStatus
    (in_license_no varchar2, l_status out varchar2, l_status_dt out varchar2)
    as
begin
    SELECT status, status_dt 
       into into l_status, l_status_dt 
    from tbl_license 
    where licence_no=in_license_no;
end;
Source Link

This is a 4th option, using out paramters?

create or replace function getLicenseStatus(in_license_no varchar2, l_status out varchar2, l_status_dt out varchar2)
    as
begin
    SELECT status, status_dt 
       into into l_status, l_status_dt 
    from tbl_license 
    where licence_no=in_license_no;
end;