Oracle オブジェクトの属性の値を取得したいと考えています。これは私のオブジェクトです:
create type demo_obj as object( val1 number, val2 number, val3 number );
そして、ここに配列があります:
create type demo_array as table of demo_obj;
次のようなプロシージャを作成します。
create or replace procedure proc_obj_demo ( obj_array DEMO_ARRAY )
as begin
FOR i IN 1..obj_array.COUNT
LOOP
INSERT INTO test_strings (s) VALUES (obj_array(i).demo_obj.val1); //here's the error
END LOOP;
end;
しかし、どうすれば Oracle オブジェクトの属性の値を取得できますか?