| Author |
database connectivity using java
|
bala kan
Ranch Hand
Joined: Aug 20, 2012
Posts: 44
|
|
good evening to everyone,
i have been doing java program using JFrame to create registration page.. there are 7 fields such as name, username, password,address,city,dob and gender..
and one JButton object.. when i clicked it, these details should be saved in the database..
i used the following code but it gives me an error like that
my code is
Thanks in advance
|
 |
Campbell Ritchie
Sheriff
Joined: Oct 13, 2005
Posts: 32838
|
|
|
What does it say in the documentation for your database about that message and code 1003?
|
 |
Bill Clar
Ranch Hand
Joined: Sep 21, 2006
Posts: 104
|
|
|
Check out what the Java API says about ResultSet.moveToInsertRow().
|
 |
Tony Docherty
Bartender
Joined: Aug 07, 2007
Posts: 1225
|
|
By default ResultSets aren't updateable. You can request an updateable ResultSet when you create the statement object eg:
|
 |
 |
|
|
subject: database connectivity using java
|
|
|