File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JDBC and the fly likes JDBC input parameter for  type IS TABLE OF VARCHAR2 Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Databases » JDBC
Reply Bookmark "JDBC input parameter for  type IS TABLE OF VARCHAR2" Watch "JDBC input parameter for  type IS TABLE OF VARCHAR2" New topic
Author

JDBC input parameter for type IS TABLE OF VARCHAR2

Steve Jiang
Ranch Hand

Joined: May 17, 2004
Posts: 106
I need to set the input parameter for plan_list (Type DBMS_SPM.NAME_LIST) in dbms_spm.evolve_sql_plan_baseline in JDBC ,




and


Normally which kind of structure should we use in OracleCallableStatement query?


Steve Jiang
Ranch Hand

Joined: May 17, 2004
Posts: 106
I think I find the answers for it. We can use setPlsqlIndexTable of OracleCallableStatement to bind the input parameter as table.

Thanks,


Steve Jiang
Ranch Hand

Joined: May 17, 2004
Posts: 106
I tried to




Which type should we set for DBMS_SPM.NAME_LIST in OracleCallableStatement?


Thanks,


 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: JDBC input parameter for type IS TABLE OF VARCHAR2
 
Similar Threads
Wrong no or type of argument in line 1, column 7
registerOutParameter for table?
How to read object collection as an out parameter of stored procedure(Oracle)?
Can you pass complex type from pl sql to web service using utl_http
how to call stored proc with index-by-varchar table parameters