File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JDBC and the fly likes what is better Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
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: 61187
    
  66

For what?

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

And please be more descriptive in your topic titles.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Agador Paloi
Ranch Hand

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

Joined: May 26, 2003
Posts: 30506
    
150

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: 38763
    
  23
It would be better to read this than to ask what is better.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: what is better