Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: Any way to get RowCount by not using Select count(*) from table
On Tue, 29 Dec 1998 14:29:57 -0800, Jonathan Ingram
<jonathan.ingram_at_miname.com> wrote:
>boonsong wrote:
>
>> Any way to get RowCound by not using Select count(*) from table
>
>Yes. Don't select count (*); instead, do one of the following:
>
> select count (1) from <table>;
> select count (rowid) from <table>;
Which, in any case, will return exactly the same result as "select count(*)"
>Jonathan
Regards,
Jurij Modic <jmodic_at_src.si>
Certified Oracle7 DBA (OCP)
![]() |
![]() |