• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Update Query with CallableStatement in java example.

 
Rd Dari
Ranch Hand
Posts: 212
Java Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

hi all Ranchers,

How to update a table row using Stored Procedures in java

Thanks in advanced!!
 
Martin Vajsar
Sheriff
Posts: 3752
62
Chrome Netbeans IDE Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic