macromedia.coldfusion.database_access
[Top] [All Lists]

Re: recordcount without query

Subject: Re: recordcount without query
From: Adam Cameron <adam_junk@xxxxxxxxxxx>
Date: Sun, 24 Feb 2008 09:56:10 +0000
Newsgroups: macromedia.coldfusion.database_access

> I'm not aware of a better way of doing it than that.

It's "amazing" what one can find it one only looks.

I googled "oracle number of rows in a table" and it took me about 15min of
experimentation to come up with this:

select num_rows
from user_tables
where table_name = '#nameOfTable#'

You didn't seem to mention which DB system you're using (always helpful
when asking questions, btw), but if not Oracle I'm sure you can apply
yourself in the same way I have to find your own answers.

-- 
Adam

<Prev in Thread] Current Thread [Next in Thread>