我在oracle中执行以下内联查询时错过了右括号错误:
" select * from ( "+
" SELECT P.SZ_PARAM_CODE id, P.SZ_PARAM_DESC cap "+
" FROM prm_vew_parameter P, PRM_PARAMETER_AVAIBILITY A, RULE_PARAMETER_ASSOCIATION X "+
" WHERE P.SZ_PARAM_CODE=A.SZ_PARAM_CODE "+
" AND A.SZ_PROG_SERVICE_CODE='RULE_PARAMS' "+
" AND P.SZ_ORGID=X.ORGID "+
" AND P.SZ_PARAM_CODE=X.PARAMCD "+
" AND X.RULECD='ND_APTDEV' "+
" --AND X.ORGID='' "+
" AND X.INOUT='I' "+
" UNION "+
" select T.PARAMCD id, L.SZDESCRIPTION cap "+
" from RULE_PARAMETER_ASSOCIATION t, CMN_VEW_CENTRAL_LOOKUP L "+
" WHERE T.PARAMCD=L.SZCODE " +
" AND L.SZLOOKUPEFINEDFOR='L_RSK_OUTPUT_PARAM' "+
" AND L.SZ_ORGID=T.ORGID "+
" AND T.RULECD='ND_APTDEV' "+
" AND T.INOUT='O' "+
" --AND T.ORGID=':ORGID:' "+
" AND L.SZAPP_ID='RISK' "+
" AND L.SZGROUP_ID='Rule_type' "+
" UNION "+
" SELECT T.SZ_TEMPPARAM_CODE id, T.SZ_TEMPPARAM_CODE cap "+
" from RLMGR_M_RULE_TEMPPARAM T "+
" WHERE T.SZ_RULESET_CODE='RULE_PARAMS' "+
" --AND T.SZ_ORGID=':ORGID:' "+
" ORDER BY cap )"+" where rownum <= 1 ";
对此有任何帮助/建议将不胜感激。 提前谢谢。