View Single Post
  #2 (permalink)  
Old April 24th, 2007, 07:16 AM
iamrakesh22 iamrakesh22 is offline
Friend of Wrox
 
Join Date: Mar 2007
Location: Hyderabad, A.P., India.
Posts: 373
Thanks: 0
Thanked 1 Time in 1 Post
Default

Hi,
I think you've missed few fundamentals.
  1. You forgot to pass the parameters to the inser statement.
  2. To read data from a table first we'll issue a select query and use execureQuery() method of the statement class which'll return the resultset object.

Try to go through some JDBC material.
http://www.javaskyline.com/learnjdbc.html
http://www.freeprogrammingresources.com/jdbc.html

Regards,
Rakesh