0

代码出错

           <TD CLASS="tablelabel">Base Currency</TD>
                        <TD class="reqlabel1">');
                          vSQl := 'select toValueText(a.code, a.descr) from (select currency_code code, des1 descr '||
                                                                              'from sy_curr_code 
                                                                              ) a ';
                     htp_dropdown(pvSql => vSQL,
                     pvName => 'pvcurrencycode',
                     pvDefVal =>' SELECT CurrCurrencyCode.INF_SRC_DB currency_code, DECODE(CurrCurrencyCode.currency_code,'AUS','USD','BPS')result from s_sales_center,'
                     -- pvDefVal =>NVL(CurrCurrencyCode.INF_SRC_DB,'BPS'),

                     pvEvent => 'style="width:200px" class="reqinput1" tabindex=33 id="pvcurrencycode"');
                 htp.p('</TD>
                 </tr>
   <TR>

我认为我的代码有效,我检查了语法是否正确,对我来说似乎是正确的,我认为有 AUS 应该没有问题,现在我得到错误

[Error] PLS-00103 (6343: 132): PLS-00103: Encountered the symbol "AUS" when expecting one of the following:

   ) , * & = - + < / > at in is mod remainder not rem
   <an exponent (**)> <> or != or ~= >= <= <> and or like like2
   l
4

1 回答 1

0

鉴于您给我们的内容与应用程序代码混合在一起,这有点难以判断,但我认为您需要对所有单引号进行双引号。

像这样

            pvDefVal =>' SELECT CurrCurrencyCode.INF_SRC_DB currency_code, DECODE(CurrCurrencyCode.currency_code,''AUS'',''USD'',''BPS'')result from s_sales_center,'
于 2013-10-18T17:32:02.063 回答