GeeCON Prague 2014*
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


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: 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: 3610
    
  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.
 
GeeCON Prague 2014
 
subject: Update Query with CallableStatement in java example.