File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JDBC and Relational Databases 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 and Relational Databases
Bookmark "what is better" Watch "what is better" New topic

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

Joined: Jan 10, 2002
Posts: 63844

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] [About Bear] [Books by Bear]
Agador Paloi
Ranch Hand

Joined: Jan 24, 2006
Posts: 118
Jeanne Boyarsky
author & internet detective

Joined: May 26, 2003
Posts: 33102

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.

[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
Campbell Ritchie

Joined: Oct 13, 2005
Posts: 46337
It would be better to read this than to ask what is better.
I agree. Here's the link:
subject: what is better
It's not a secret anymore!