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: Number of hits

Re: Number of hits

From: Matthias Gresz <GreMa_at_t-online.de>
Date: 17 Sep 1998 10:51:13 GMT
Message-ID: <6tqpj1$dei$1@news01.btx.dtag.de>


Hi,

select count(pk) from Huge_table
where pk > ' '

Young-chul,Jun schrieb:
>
> It will be better fast using INDEX.
>
> If there is index on huge table, Use below sql statement.
>
> select count(*) from Huge_table
> where index_col > ' '
>
> Bye..
>
> Herve ÀÌ(°¡) <35FF78F5.10B5_at_yahoo.com> ¸Þ½ÃÁö¿¡¼­
> ÀÛ¼ºÇÏ¿´½À´Ï´Ù...
> >Hi,
> >
> >I've got a very huge table on Oracle (at least 20 million rows.
> >How to find out very quickly the number of hits ?
> >The Select count(*) statement is quite slow.
> >
> >Herve Meftah

--

Regards

Matthias Gresz :-)

--
Matthias.Gresz_at_Privat.Post.DE

          /|
         / |        
        /| |\
       /||  |\
      / O    |\         
     |        |\ Galopping Horse beats Running Man.
    /          |\
   /      /     |\
  /    __/|      |\
  \°   /  |       |\
   \/_/   |        |\

Received on Thu Sep 17 1998 - 05:51:13 CDT

Original text of this message

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