Java Prepared Statement Error
- by Suresh S
Hi Guys the following code throws me an error i have an insert statement created once and in the while loop i am dynamically setting parameter , and at the end i says ps2.addBatch() again
while ( (eachLine = in.readLine()) != null))
{
for (int k=stat; k <=45;k++)
{
ps2.setString (k,main[(k-2)]);
}
stat=45;
for (int l=1;l<= 2; l++)…