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

Home -> Community -> Usenet -> c.d.o.tools -> exception handling with explicit cursors?

exception handling with explicit cursors?

From: Jules <newsreply_at_[dontspamme>
Date: Mon, 28 Aug 2000 13:17:28 +1100
Message-ID: <8oci48$j05$1@towncrier.cc.monash.edu.au>

Can it be done?

ie, this works:
DECLARE
 ItemDESC item.itemdesc%TYPE;
 CurrItemID BINARY_INTEGER;
BEGIN
 CurrItemID := 890;
 SELECT item.itemdesc
 INTO ItemDESC
 FROM item
 WHERE item.itemid = 890;
 DBMS_OUTPUT.PUT_LINE('Item ID: ' || TO_CHAR(CurrItemID) || ' Item Description: ' || ItemDESC);
 EXCEPTION
 WHEN NO_DATA_FOUND THEN
  DBMS_OUTPUT.PUT_LINE('No data was found'); END;
/

can anyone help?

Jules Received on Sun Aug 27 2000 - 21:17:28 CDT

Original text of this message

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