我正在尝试从pl-sql块调用SP:
DECLARE
type poi IS TABLE OF VARCHAR2(4000);
pois poi := poi('test1', 'test2', 'test3', 'test4', 'test5');
BEGIN
utils.set_attribute_domain(pis_attribute_name =>'POI LIST',
pia_attribute_values =>pois,
pis_fixed_domain_ind =>common.constants.gc_y_val,
pis_trim_whitespace => NULL
);
END;
SP签名如下:
PROCEDURE set_attribute_domain(pis_attribute_name IN VARCHAR2,
pia_attribute_values IN fls_varchar_table,
pis_fixed_domain_ind IN VARCHAR2,
pis_trim_whitespace IN VARCHAR2 DEFAULT NULL)
common.constants.gc_y_val在另一个包中初始化:
gc_y_val CONSTANT VARCHAR2(1) DEFAULT 'Y';
fls_varchar_table数据类型在ddl文件中创建:
CREATE OR REPLACE TYPE FLS_VARCHAR_TABLE IS TABLE OF VARCHAR2(4000);
我在set_attribute_domain SP上获得了错误的参数数量。我有什么想法。感谢