代码分析错误查询SQL

SELECT A.SNAME, A.SPATH, B.ERR_MSG, B.RTN_DETAIL_MESSAGE
  FROM CM_SRC A, CM_JOB_SRC_LOG B
 WHERE B.JOB_ID = '20150921000221'
   AND B.ERR_CODE IS NOT NULL
   AND A.SRC_ID IN (SELECT B.SRC_ID
                      FROM CM_JOB_SRC_LOG CJS
                     WHERE CJS.JOB_ID = '20150921000221'
                       AND CJS.ERR_CODE IS NOT NULL);

 

posted @ 2015-09-21 18:06  ArcerZhang  阅读(235)  评论(0编辑  收藏  举报