Tapas Chand wrote:Hi Pranit,
In JDBC a ResultSet associated with a Statement is closed as soon as we associate another ResultSet to the same Statement before closing the previous ResultSet.
I hope now you understand the problem in the code and find a solution and please post the solution if you get.
If you do not understand the problem even now we will provide the solution.
P.S. Do you need that semi-colon?
In addition I'm not sure why you now have two connections?
Surely this is a single transaction, so requires a single connection to work with?
Also, MySQL's column limit is actually a row limit, that is a single row can only hold some 64k.
From the docs.
You would get an error if you exceeded that, though.
The columns which is to be updated is the 61st column of the table!