• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Determine the Callable Statements Parameters at runtime

 
Ranch Hand
Posts: 300
Eclipse IDE Oracle Tomcat Server
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am executing oracle procedures through callable statements, The parameters are entered by the user like cutomerid , dates . As there are more than one procedure to get executed and each procedure has different set of parameters , where in some procedure date is the first parameter in second procedure date is the last parameter. therefore i created a comma separated string for the parameters entered by the user and directly passed it to the procedure. but the procedure do not get executed and throws out error. Can anybody suggest me how do i determine the type of parameter at runtime and pass it to the procedure.And Why i am not able to pass paramters directly to the procedure.

 
Bartender
Posts: 2661
19
Netbeans IDE C++ Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'll tackle the error: The error is thrown because you do not wrap single quotes around your dates.
reply
    Bookmark Topic Watch Topic
  • New Topic