Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I also tried using print $crows[0], but then it says it requires global symbol @crows.my $sqlc = "SELECT COUNT(*) FROM company_info"; my $crows= $dbh->selectrow_arrayref($sqlc); print $crows; #I did not use prepare or execute since I heard selectrow_arrayref wra +ps it around
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Select COUNT in MySQL
by robartes (Priest) on Jun 09, 2005 at 08:11 UTC | |
Re: Select COUNT in MySQL
by dbwiz (Curate) on Jun 09, 2005 at 09:11 UTC | |
Re: Select COUNT in MySQL
by tchatzi (Acolyte) on Jun 09, 2005 at 10:24 UTC | |
Re: Select COUNT in MySQL
by Ben Win Lue (Friar) on Jun 09, 2005 at 08:10 UTC |