try
{
Statement stmt=con1.createStatement();
String multiqueryString="Update table1 set name='';Select * fromaww table1; "
boolean hasMoreResultSets = stmt.execute( multiQuerySqlString );
}
As you can see first statement is correct, but the second is incorrect (near from
).
But an update will be executed then Java will find error in second statement and give me error instead of separately telling about what happened to each statement.
How can I get update message and error message separately?