Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-16-2007, 07:00 PM
Member
 
Join Date: Jul 2007
Posts: 41
paty is on a distinguished road
Statement or Prepared Statement ?
what are the differences between them? which is the best ? in what case do I have to use preparedstatement?
I'm developing a web application and it has a data base connection.
What do you recommend me to use?
thanks
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 07-24-2007, 01:33 AM
Member
 
Join Date: Jul 2007
Posts: 40
elizabeth is on a distinguished road
It is better to use prepared statement because it is faster for the data base server. And you must close it after you are done with it (not keeping it open for a long period). Why keep an unnecessary resource in memory?
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 07-27-2007, 03:14 PM
Member
 
Join Date: Jul 2007
Location: bangalore,india
Posts: 19
varunthecool is on a distinguished road
welk
preparedstatement is better than statement
Bookmark Post in Technorati
Reply With Quote
  #4 (permalink)  
Old 08-01-2007, 05:45 PM
Member
 
Join Date: Jul 2007
Posts: 41
paty is on a distinguished road
perfect, thanks guys
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Using Prepared Statement Java Tip Java Tips 0 02-06-2008 10:22 AM
goto statement bugger New To Java 2 12-12-2007 04:47 PM
Help with if statement carl New To Java 1 08-06-2007 08:53 AM
there is no return statement gabriel New To Java 1 08-03-2007 07:24 PM
If Statement aDrizzle New To Java 4 07-08-2007 09:55 PM


All times are GMT +3. The time now is 03:18 PM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org