Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: Error Handling

Re: Error Handling

From: DA Morgan <damorgan_at_exesolutions.com>
Date: Tue, 11 Feb 2003 12:21:54 -0800
Message-ID: <3E495B62.A4D477E0@exesolutions.com>


Gaurav wrote:

> I am using ASP and Oracle 8.1.7, we have some ASP screens which allows
> user to enter certain values which are Unique in the tables.
>
> My question is if I want to handle this what is the best
> way(efficient) of doing it. Should I allow insert stored procedure to
> raise an exception or should I check by selecting on the table if the
> value exist and depending on the result Insert or Raise error.
>
> Thanks in advance
> Regards
> Gaurav

I'd put the select statement into a block with an exception handler and let it do what comes naturally.

Daniel Morgan Received on Tue Feb 11 2003 - 14:21:54 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US