Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Cast DBMS_SQL.NUMBER_TABLE to another pl/sql table-of-number type?

346704Jan 17 2003
Using dynamic SQL, I am bulk-collecting two numeric fields into two tables of number. This works fine, the tables are DBMS_SQL.NUMBER_TABLE.

I am trying to feed an API that takes two table of these numbers, but its parameter types are different. Both are identical definitions to DBMS_SQL.NUMBER_TABLE, i.e., TABLE OF NUMBER INDEX BY BINARY_INTEGER.

I don't want to duplicate or copy 2500-7500 records to do this, but I can't find a way to use the api's table-of-number with DBMS_SQL.DEFINE_ARRAY. Nor can I use DBMS_SQL.NUMBER_TABLE with this API. I've tried a few CAST phrases, but it won't compile.

Can someone give me a suggestion here? I'd hate to set up a loop to copy the data from one table to another.

Thanks,

Andrew Wolfe
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 14 2003
Added on Jan 17 2003
0 comments
493 views