I have some predefined values like
declare
v_type varchar2(20);
begin
select type into v_type from GenericTypes where id =5 ;
// say v_type = 'XYZ'
end;
Now, i have to check if v_type is equal to 'ABC' or 'DEF' or 'ASD' and 5 more items.
so i used:
if v_type = 'ABC' or v_type ='DEF' or v_type='ASD' and 5 more conditions
If there is any more efficient method to do this like using select exist etc.