aspose file tools
The moose likes JDBC and the fly likes what is better Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Databases » JDBC
Reply Bookmark "what is better" Watch "what is better" New topic
Author

what is better

Samanthi perera
Ranch Hand

Joined: Jan 08, 2010
Posts: 510
is prepared statement or callable statement better?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56192
    
  13

For what?

That's like asking: what's better? a spoon or a fork?

And please be more descriptive in your topic titles.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
Agador Paloi
Ranch Hand

Joined: Jan 24, 2006
Posts: 116
Yes.
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 26192
    
  66

Samanthi perera wrote:is prepared statement or callable statement better?

They don't do the same thing. If you have a stored proecedure, you'd use a callable statement. Otherwise you wouldn't.


[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
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 32675
    
    4
It would be better to read this than to ask what is better.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: what is better
 
Similar Threads
statement Vs prepared statement for ordinary select queries
String Vs Stringbuffer
Scriplet
Escape Character Help
When should use Statement over PreparedStatement