Ne, ale můžete použít místní funkci:
declare
l_name1 temp_tbl.name%type;
function get_name
( p_t number
, p_r varchar2
) return varchar2
is
l_name temp_tbl.name%type;
begin
select Name into l_name from TEMP_TBL where T=p_t and R=p_r;
return l_name;
exception
when no_data_found then
return null;
end;
begin
l_name1 := get_name (1, '2');
l_name1 := get_name (33, '3');
l_name1 := get_name (11, '4');
l_name1 := get_name (2, '5');
l_name1 := get_name (4, '6');
end;