wood burning stoves 2.0*
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 Android Security Essentials Live Lessons this week in the Android 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]
 
Consider Paul's rocket mass heater.
 
subject: How to get a return value from the stored procedure using callable statement
 
Similar Threads
Calling Stored Procedure from jdbcTemplate
VARBINARY in sp -how-to
registerOutParameter
executeUpdate() returning unexpected results
Stored procedures..