The moose likes Swing / AWT / SWT and the fly likes database connectivity using java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "database connectivity using java" Watch "database connectivity using java" New topic

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

error is java.sql.SQLException: Invalid Cursor Type: 1003

my code is

Thanks in advance
Campbell Ritchie

Joined: Oct 13, 2005
Posts: 46360
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: 163

Check out what the Java API says about ResultSet.moveToInsertRow().
Tony Docherty

Joined: Aug 07, 2007
Posts: 2838
By default ResultSets aren't updateable. You can request an updateable ResultSet when you create the statement object eg:
I agree. Here's the link:
subject: database connectivity using java
It's not a secret anymore!