This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to get a return value from the stored procedure using callable statement

 
elli dian
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to call a stored procedure.
The stored procedure have 3 input parameter and will returm a value.
Description of the stored procedure is
:isClockingProblem(company,emp,clockingdate) return number.
if number=0-->OK
number=1--->bad.

So how to get a return value from the stored procedure using java.
Please help me!!!
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What do you mean by stored procedure ? Database stored procedure ?
 
elli dian
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes I want to call a database stored procedure from oracle!!
Give me a solution
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is a JDBC forum for this kind of question.

Anyway, read this tutorial :
http://java.sun.com/docs/books/tutorial/jdbc/basics/sql.html
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24208
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving to JDBC.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic