Sql错误:SQLSyntaxErrorException:ORA-00933:SQL命令未正确结束

时间:2017-09-25 09:11:48

标签: java sql oracle jdbc

我有这个查询用jdbc驱动程序执行到Oracle sql:

QUERY = "select * from USER.MASTER_CHANNEL mc, (SELECT SERVICE_CHANNEL AS \"SERVICE_CHANNEL\", OPERATION_ID AS \"operation_id\", SUBOPERATION_ID AS \"suboperation_id\", TRANSACTION_ID AS \"transaction_id\", LOG_TYPE_CODE AS \"log_type_code\", LOG_SUBTYPE_CODE AS \"log_subtype_code\", CONTENT_ID AS \"content_id\", CONTENT_VERSION AS \"content_version\", INPUT_FIELD AS \"input_field\", OUTPUT_LEVEL AS \"level\", TRANSFORMATIONS AS \"transformations\", OUTPUT_FIELD AS \"output_field\" FROM USER.RULES_TABLE ) tmp_rules where decode(tmp_rules.SERVICE_CHANNEL, 'ALL', '1', 'tmp_rules.SERVICE_CHANNEL') = decode(tmp_rules.SERVICE_CHANNEL, 'ALL', '1', 'mc.key_name') ";

当我执行此过程时,该过程会向我显示以下错误:

  

SQLSyntaxErrorException:ORA-00933:SQL命令未正确结束。

有人知道它可能会失败,因为在sql中我执行查询并且它有效。

由于

0 个答案:

没有答案