Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JDBC input parameter for type IS TABLE OF VARCHAR2

 
Steve Jiang
Ranch Hand
Posts: 127
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 127
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 127
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I tried to




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


Thanks,


 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!