multiple_pkg_3.sub_proc_insert将数据插入到表person_name中。编译时,select语句中显示ORA-00942:表或视图不存在。
PROCEDURE chk_pkg_1 IS
p_name VARCHAR2(25);
exp_id NUMBER;
BEGIN
i11137.multiple_pkg_3.sub_proc_insert(v_name);
SELECT id INTO exp_id FROM i11137.person_name WHERE name = v_name;
ut.expect(exp_id).to_equal(act_id);
END chk_pkg_1;
select语句在过程之外起作用。