I have some code that i wish to place the ArrayList into a Database Table
I am getting the Following Errors
java.sql.SQLException: Can not issue data manipulation statements with executeQuery().
You seem to have mixed up your original requirements (Write the entries of a List into a database table) with some code which reads those entries from a database table into a List.
bala nannaka wrote:Try to use the executeUpdate which returns an int value pointing to number of rows effected with your statement. Generally for all INSERT,UPDATE and DELETE operations we can use executeUpdate which they don't return any result set but the number of rows affected with those operations.
I have INSERT, UPDATE, DELETE on the Database, I am able to Save the Database using Serialization but am looking for a Way to Drop Everything inside the Database and Reload the database with the saved information that is inside the Array List or the Serialized File.