oracle8.1.6
BEGIN
:1 := rel_constraint.new(
constraint_name => :constraint_name,
rel_segment => :segment_id,
rel_side => 'two',
required_rel_segment => rel_segment.get(:supersite_group_id, 'membership_rel'),
creation_user => :user_id,
creation_ip => :creation_ip
);
END;
select t.pretty_name as package_name, acs_object.name(s.object_id) as object_name
from site_nodes s, apm_package_types t
where s.node_id = :node_id
and t.package_key = :package_key
select case
when exists (select 1 from acs_object_types
where supertype = :object_type)
then 1
else 0
end
from dual
select object_type
from acs_object_types
start with object_type = :object_type
connect by object_type = prior supertype