|
Posted by Keith on March 13, 2008, 9:00 am
Please log in for more thread options > Mark Jaffe wrote:
>
> > But when I execute the SQL, I only get "1" returned for each "$rows",
> > rather than what I expect, the number of rows.
>
> > Why is this not working for me?
>
> "SELECT COUNT(*) ..." returns one row, which is the number
> of counted rows.
>
> Frank
> --
> Dipl.-Inform. Frank Seitz;http://www.fseitz.de/
> Anwendungen f=FCr Ihr Internet und Intranet
> Tel: 04103/180301; Fax: -02; Industriestr. 31, 22880 Wedel
Exactly. So, not to put too fine a point on it what Mark wanted to do
was something like:
"SELECT COUNT(*) Cnt..."
=2E..
my $srcHref =3D $sth->fetchrow_hashref();
print $srcHref->;
# QED
|