I have some problem trying to implement a simple JDBC query into a Java application.
So I have the following query:
SELECT D.* FROM coda_tx c, do
executeQuery() automatically adds a semicolon to a statement when executing it.
executeQuery()
Change the line sb.append("';"); to sb.append("'");.
sb.append("';");
sb.append("'");
Also you'll need to add spaces at the end or at the beginning of each line, your statements are invalid otherwise.