1

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 オブジェクトの属性の値を取得できますか?

4

1 に答える 1

1

行を次のように変更します。

 INSERT INTO test_strings (s) VALUES (obj_array(i).val1);
于 2011-03-06T11:33:47.567 に答える