How to get a user-define data type by OCI? [message #188344] |
Fri, 18 August 2006 02:37  |
wokiluyar
Messages: 4 Registered: August 2006 Location: China
|
Junior Member |
|
|
Hi,
I want to write a program to deal with some stored procedures with parameters of user-defined data type. Such as:
CREATE OR REPLACE GUEST.PACKAGE PKG_R2D2 AS
TYPE NumberTable_t is table of number;
END PKG_BULK_INSERT;
/
CREATE OR REPLACE PROCEDURE GUEST.PROC_DOUBLEARRAY
(PRM1_DOUBLE IN PKG_R2D2.NumberTable_t ,returnType IN OUT
PKG_R2D2.doubleType) IS
l_ix BINARY_INTEGER;
BEGIN
for l_ix in PRM1_DOUBLE.FIRST .. PRM1_DOUBLE.LAST loop
... --some sql execute
end loop;
END PROC_DOUBLEARRAY;
/
Now, I want to call this procedure : PROC_DOUBLEARRAY in my program, but I don't know how to get the parameter : PRM1_DOUBLE type, for its type is a user-defined data type. I want to get the data type : NumberTable information before I prepare to call this procedure. I'm not the procedure creater, so I can not assume the data type is a table.
|
|
|
|
|
|
|