PL SQL函数 - 编译错误

时间:2016-07-28 06:59:53

标签: oracle plsql oracle11g plsqldeveloper

我是pl sql的新手,一直在尝试执行此函数但遇到编译错误。

<form method='post' action='" . $paymentURL . "' id='frmPaymentDtl' onsubmit='target_popup(this)'>
  <a id=\"submit_full_payment\" onclick=\"target_popup(get_form(this).submit())\">Make Full Payment</a>
  <input type='hidden' name='customer_id' value='" . $customer_id . "'/>
  <input type='hidden' name='account_id' value='" . $account_id . "'/>
  <input type='hidden' name='invoice_number' value='" . $invoice_model[0]->number . "'/>
  <input type='hidden' name='detail_id' value='" . $bean->id . "'/>
  <input type='hidden' name='header_id' value='" . $_GET['record'] . "'/>
  <input type='hidden' name='detail_number' value='" . $bean->detail_id . "'/>
  <input type='hidden' name='amount' value='" . number_format($bean->amount,2) . "'/>
  <input type='hidden' name='description' value='" . $paymentSchedule->description . "'/>
  <input type='hidden' name='invoice_id' value='" . $invoice_model[0]->id . "'/>
  <input type='submit' name='submit_btn' class=\"listViewTdToolsS1\" value='Submit Bank/Credit Payment'/>
</form>
<script type='text/javascript'>
  function get_form( element )
  {
    while( element )
    {
      element = element.parentNode
      if( element.tagName.toLowerCase() == \"form\" )
      {
      //alert( element ) //debug/test
        return element
      }
    }
  return 0; //error: no form found in ancestors
  }

  function target_popup(form) {
    window.open('', 'formpopup', 'width=800,height=600,resizeable,scrollbars');
    form.target = 'formpopup';
  }
</script>

不幸的是,我的pl-sql开发人员不知道显示这些错误,所以我无法弄清楚这个问题。

此外,当尝试重新编译它时,它说对象不存在&#39;或已被删除。

感谢。

1 个答案:

答案 0 :(得分:0)

第一: 如果您使用表别名(此处:&#34; t&#34;),则:

 from rural_master_view1 t where t.load_date='apr-15' and t.activity='FINANCE_AMOUNT

正如所说的那样 - &#34 ;;&#34;双重后:

into total from dual**;**