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

Home -> Community -> Mailing Lists -> Oracle-L -> RE: Preventing ORA-1403 in triggers

RE: Preventing ORA-1403 in triggers

From: Jamadagni, Rajendra <Rajendra.Jamadagni_at_espn.com>
Date: Mon, 10 Dec 2001 12:38:44 -0800
Message-ID: <F001.003D9375.20011210122333@fatcity.com>


IMHO,
 It is just a matter of catching exceptions in an inner block. This whole lot easier than doing count(*) ...

  .... -- initial code
  --
  begin -- inner block begin
    SELECT description

      INTO v_desc
      FROM mytable
     WHERE indexcol1 = :v_col1
       AND indexcol2 = :v_col2;
    exception
      when no_data_found  -- aka 1403
        then null;   -- or your favourite action
    --
  end;      -- inner block ends ...

  --
  ... continue with remaining code

HTH
Raj



Rajendra Jamadagni MIS, ESPN Inc. Rajendra dot Jamadagni at ESPN dot com
Any opinion expressed here is personal and doesn't reflect that of ESPN Inc.

QOTD: Any clod can have facts, but having an opinion is an art!

*********************************************************************2

This e-mail message is confidential, intended only for the named recipient(s) above and may contain information that is privileged, attorney work product or exempt from disclosure under applicable law. If you have received this message in error, or are not the named recipient(s), please immediately notify corporate MIS at (860) 766-2000 and delete this e-mail message from your computer, Thank you.

*********************************************************************2
Received on Mon Dec 10 2001 - 14:38:44 CST

Original text of this message

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