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 -> Re: Question on Proper Use of EXISTS

Re: Question on Proper Use of EXISTS

From: Michael Sit <michael.sit_at_oracle.com>
Date: Fri, 30 Mar 2001 16:14:19 -0800
Message-ID: <1o9x6.112$Cp4.45077@inet16.us.oracle.com>

Declare
  kount number;
Begin
  select count(*)
   into kount
   from mytable
   where id = :old.id;

  if kount > 0 then
    ......
  end if;
end; Received on Fri Mar 30 2001 - 18:14:19 CST

Original text of this message

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