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

Home -> Community -> Usenet -> c.d.o.misc -> Re: Newbie ? - Howto find nbr records in a table

Re: Newbie ? - Howto find nbr records in a table

From: replace this with _at_ <_at_).xs4all.nl>
Date: Tue, 06 Oct 1998 20:22:31 GMT
Message-ID: <361a7bce.1572040@news.xs4all.nl>


Hi,

>I want to find out how many records (total) are in a table. I'm writing
>some
>PL/SQL to allow a user to interact with an Oracle database from a
>pc-based
>browser.

This will do:

declare
  v_count NUMBER;
begin
  select count(*)
  into v_count
  from my_table;
end;

That will be all folks!   


Received on Tue Oct 06 1998 - 15:22:31 CDT

Original text of this message

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