Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

database connectivity using java

 
bala kan
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Nam Ha Minh
Ranch Hand
Posts: 502
Eclipse IDE Firefox Browser Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Looks like you need to specify a particular cursor type when creating the statement, ie. forward or backward.
Why don't you use INSERT statement ?
 
Wendy Gibbons
Bartender
Posts: 1111
Eclipse IDE Oracle VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I really really doubt odbc supports modifiable result sets..

I would just do an old fashioned insert statement using a prepared statement.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic