learn java
The moose likes JDBC and Relational Databases 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 The Software Craftsman this week in the Agile forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
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: 211


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: 3688
    
  61

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.
 
Have you tried LearnNowOnline? http://www.learnnowonline.com/
 
subject: Update Query with CallableStatement in java example.