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: a pl/sql question

RE: a pl/sql question

From: Jacques Kilchoer <Jacques.Kilchoer_at_quest.com>
Date: Thu, 29 Apr 2004 13:08:42 -0700
Message-ID: <B5C5F99D765BB744B54FFDF35F60262109F877E8@irvmbxw02>


Is the "when others" exception trying to capture errors like "table does not exist" or is it only for a "%notfound" condition in case there is no row in the table for "id =3D jid ;" ?=20

-----Original Message-----
Guang Mei

I have the following pl/sql function code that gets called a lot in our application.

...

    select title, volume, pages, year, journalid     into ttl, vol, pg, yr, jid from ref where id=3Drn;     begin

      select abbrev into jname from journal2abbrev
      where id=3Djid and medline=3D'Y';
    exception
      when others then select name into jname from journal where =
id=3Djid;

    end;

...



Please see the official ORACLE-L FAQ: http://www.orafaq.com

To unsubscribe send email to: oracle-l-request_at_freelists.org put 'unsubscribe' in the subject line.
--
Archives are at http://www.freelists.org/archives/oracle-l/
FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html
-----------------------------------------------------------------
Received on Thu Apr 29 2004 - 15:05:51 CDT

Original text of this message

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