Re: DBI does not do what I expect...
- From: Keith <keith.wingate@xxxxxxxxxxxxxxxxx>
- Date: Thu, 13 Mar 2008 06:00:04 -0700 (PDT)
On Mar 12, 3:48 am, Frank Seitz <devnull4...@xxxxxx> wrote:
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ür 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..."
...
my $srcHref = $sth->fetchrow_hashref();
print $srcHref->{Cnt};
# QED
.
- References:
- DBI does not do what I expect...
- From: Mark Jaffe
- Re: DBI does not do what I expect...
- From: Frank Seitz
- DBI does not do what I expect...
- Prev by Date: Re: DBI does not do what I expect...
- Next by Date: creating perl binary using PAR module , execution error under unix
- Previous by thread: Re: DBI does not do what I expect...
- Next by thread: creating perl binary using PAR module , execution error under unix
- Index(es):