IntelliJ Java IDE
The moose likes JDBC and the fly likes Deleting Rows of an Updateable ResultSet Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » JDBC
Reply Bookmark "Deleting Rows of an Updateable ResultSet" Watch "Deleting Rows of an Updateable ResultSet" New topic
Author

Deleting Rows of an Updateable ResultSet

Jeremy Hooie
Ranch Hand

Joined: Aug 22, 2001
Posts: 38
I'm using an Updateable ResultSet to loop through records in the database and if a record's start date occurs before a certain date, I want to delete the record from the ResultSet and the database.

When the code hits the deleteRow() method, I get a "Degree of derived table does not match column list" SQLException. Any ideas?
Jeremy
Jamie Robertson
Ranch Hand

Joined: Jul 09, 2001
Posts: 1879

just wondering why you can't use the following code instead (doesn't seem to be a need for scrollable resultsets..)

Jamie
Jeremy Hooie
Ranch Hand

Joined: Aug 22, 2001
Posts: 38
I can, I just wanted to familiarize myself with the Updateable ResultSet. I guess this is why I haven't done it before now.
Jeremy
 
 
subject: Deleting Rows of an Updateable ResultSet
 
Threads others viewed
Updateable ResultSet
ResultSet is not updateable.
Updateable ResultSet
Data Table: Can't update ResultSet from JSP page
Updatable resultsets
WebSphere development made easy
without the weight of IBM tools
http://www.myeclipseide.com

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture