wood burning stoves 2.0*
The moose likes JDBC and the fly likes Update Query with CallableStatement in java example. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Update Query with CallableStatement in java example." Watch "Update Query with CallableStatement in java example." New topic
Author

Update Query with CallableStatement in java example.

Rd Dari
Ranch Hand

Joined: Feb 22, 2010
Posts: 206


hi all Ranchers,

How to update a table row using Stored Procedures in java

Thanks in advanced!!
Martin Vajsar
Sheriff

Joined: Aug 22, 2010
Posts: 3606
    
  60

This is a very broad question.

Generally, you'd code your stored procedure (which will probably have as many parameters as needed to do the update), and use a PreparedStatement (or CallableStatement if it is a function or otherwise returns some value) to call it. The details are described in Oracle's JDBC tutorial.

However, updating a single record is easily doable in Java without any help of a stored procedure.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Update Query with CallableStatement in java example.
 
Similar Threads
File folder access through java with user name/password authentication
Java versions?
Blank page for Glassfish Admin Console
How Multiple Inheritance can be achieved in Java ?
Is Fowarder-receiver promiscuous?