This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes JDBC and the fly likes How to get a return value from the stored procedure using callable statement Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "How to get a return value from the stored procedure using callable statement" Watch "How to get a return value from the stored procedure using callable statement" New topic
Author

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

elli dian
Greenhorn

Joined: May 18, 2006
Posts: 15
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

Joined: Nov 24, 2005
Posts: 14687
    
  16

What do you mean by stored procedure ? Database stored procedure ?


[My Blog]
All roads lead to JavaRanch
elli dian
Greenhorn

Joined: May 18, 2006
Posts: 15
Yes I want to call a database stored procedure from oracle!!
Give me a solution
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14687
    
  16

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

Joined: Jul 08, 2003
Posts: 24183
    
  34

Moving to JDBC.


[Jess in Action][AskingGoodQuestions]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to get a return value from the stored procedure using callable statement