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: David Kurtz <David_at_kurzbyrn.demon.co.uk>
Date: 1997/04/19
Message-ID: <861442935snz@kurzbyrn.demon.co.uk>#1/1

In article <335b45b1.12345729_at_news.netvigator.com>

           budlo_at_netvigator.com "Bud Lo" writes:

> Hi all,
>
> My requirement is very simple.
>
> To check a record's existence in a table. ( i am using Oracle 7)
>
> Obviously, this SQL will do:
>
> select count(*) into nCount from table where ColA='ABC';
> .......

Consider building an index on ColA.

David M. Kurtz


  o__    home: david_at_kurzbyrn.demon.co.uk  voice: 0118-9462515
 _,>/'_  work: david_kurtz_at_peoplesoft.com  voice: 0118-9521320
(_) \(_)  web: http://www.kurzbyrn.demon.co.uk
Received on Sat Apr 19 1997 - 00:00:00 CDT

Original text of this message

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