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

Home -> Community -> Usenet -> c.d.o.server -> Re: Q: To check a record's existence in a table, FAST!

Re: Q: To check a record's existence in a table, FAST!

From: Connor McDonald <mcdonald.connor.cs_at_bhp.com.au>
Date: 1997/04/21
Message-ID: <335AEA76.46FF@bhp.com.au>#1/1

Martin Schroeder wrote:
>

declare
cursor x is select blah from blah_blah;
begin
open x;
fetch x into y;
if %notfound then (0 rows)
else
  fetch x into y
  if %notfound then ( 1 rows)
  else
  (>1 rows)
end if;
close x;

-- 
Connor McDonald
Systems Administrator-Unix/Oracle
BHP Iron Ore
"You're not drunk if you can lie on the floor without holding on"
            - Dean Martin
Received on Mon Apr 21 1997 - 00:00:00 CDT

Original text of this message

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