View Single Post
  #7 (permalink)  
Old 04-22-2008, 03:48 AM
rico16135 rico16135 is offline
Member
 
Join Date: Apr 2008
Posts: 28
rico16135 is on a distinguished road
Use PreparedStatement to create your query. leave a '?' in place of your variable to insert. then use the method set() in the PreparedStatement class to insert your variable. There are setInt, setString, etc. for whatever type you are using. You should read up on PreparedStatement as well as all the Statement classes to see how they are used, as well as to determine which one to use.
Reply With Quote