select apm__register_parameter (
NULL,
:package_key,
:parameter_name,
:description,
:datatype,
:default_value,
:section_name,
:min_n_values,
:max_n_values);
postgresql7.1
select v.package_id, p.parameter_name, coalesce(p.default_value, v.attr_value) attr_value
from apm_parameters p, apm_parameter_values v
where p.package_key = :package_key
and p.parameter_id = v.parameter_id (+)
postgresql7.1