This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android 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.
 
Consider Paul's rocket mass heater.
 
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?