In MySQL I have two tables, tableA and tableB. I am trying to execute two queries:
executeQuery(query1)
executeQuery(query2)
But I get the following error:
can not issue data manipulation statements with executeQuery().
What does this mean?
To manipulate data you actually need
executeUpdate()rather thanexecuteQuery().Here’s an extract from the
executeUpdate()javadoc which is already an answer at its own: