Home » Developer & Programmer » Forms » How to add exception in given below query (Forms 6i)
How to add exception in given below query [message #529894] Thu, 03 November 2011 09:28 Go to next message
qanita786
Messages: 229
Registered: May 2007
Location: PAKISTAN
Senior Member
when no data found this query generate error ora-01403 but if i count these transaction and then apply this trigger it works very well i am not intrested to count because it takes a time i want that when no data found exception clause took control but i am not understand how to add exception clause in this trigger


select sum(nvl(gl_quantity,0)),sum(nvl(gl_amount,0)) into cr_qty,cr_amt from account.glhis where gl_drcr='CR' and gl_account=:prod_consume_auto.store_code and gl_date<=:prod_master_auto.voc_date and gl_voc_no<>:prod_master_auto.voc_no group by gl_account;


Regards
Re: How to add exception in given below query [message #529900 is a reply to message #529894] Thu, 03 November 2011 09:35 Go to previous messageGo to next message
cookiemonster
Messages: 13937
Registered: September 2008
Location: Rainy Manchester
Senior Member
What trigger?
Re: How to add exception in given below query [message #529964 is a reply to message #529900] Thu, 03 November 2011 12:48 Go to previous messageGo to next message
qanita786
Messages: 229
Registered: May 2007
Location: PAKISTAN
Senior Member
when button pressed
Re: How to add exception in given below query [message #529965 is a reply to message #529964] Thu, 03 November 2011 12:56 Go to previous message
cookiemonster
Messages: 13937
Registered: September 2008
Location: Rainy Manchester
Senior Member
So what's the problem with putting an exception handler at the end of the trigger?
It's just standard PL/SQL exception handling.
Previous Topic: declare message for @ is not type in email address (merged 2)
Next Topic: Integrate JSP page with Oracle forms 11g.
Goto Forum:
  


Current Time: Sat Sep 07 13:09:06 CDT 2024