wood burning stoves 2.0*
The moose likes JDBC and the fly likes Executing a query using Callable statement Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Executing a query using Callable statement" Watch "Executing a query using Callable statement" New topic
Author

Executing a query using Callable statement

Chandra Bairi
Ranch Hand

Joined: Sep 12, 2003
Posts: 152
dear friends,
how can we execute a query using a callable statement. normally we can execute a statement using statement or prepared statement. but how can we execute a query using normal callable statement.
thanks in advance.
shekar.


Thanks,
Shekar
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30123
    
150

Chandra,
You would have to have a stored procedure containing the query you want to run. Then you could set up the parameters to pass the query (if any), run it and get the result back.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Executing a query using Callable statement
 
Similar Threads
How resultset is returned by stored procedure?
Function in Callable Statement
Prepared Statement
Prepared Vs Callable statements
Problem while executing Procedures Using Callable Statement