oracle8.1.6 select case when exists (select 1 from acs_object_types where object_type=:object_type) then 1 else 0 end from dual