Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: how to return number of rows in a table
If you just want a printable sql statement that counts the number of rows in the table try something like this:
select 'There are '||count(*)||' items in the foobar table' from foobar;
the output will look this;
'THEREARE'||COUNT(*)||'ITEMSINTHEFOOBARTABLE'
(Of course, you will want to turn headings off)
Got questions? Get answers over the phone at Keen.com.
Up to 100 minutes free!
http://www.keen.com
Received on Tue Jul 25 2000 - 00:00:00 CDT