Why I obtain this “SQLSyntaxErrorException: ORA-00933: SQL command not properly ended” when I try to perform this JDBC query?

前端 未结 2 2000
北荒
北荒 2020-12-21 04:07

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         


        
2条回答
  •  难免孤独
    2020-12-21 05:09

    Add a white space at the end of each line so that the keyword on the next line is not clumped with it, e.g.:

    sb.append("SELECT D.* ");
    

    instead of

    sb.append("SELECT D.*");
    

    and also remove the trailing semicolon.

提交回复
热议问题