Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Select COUNT in MySQL

by dbwiz (Curate)
on Jun 09, 2005 at 09:11 UTC ( #465030=note: print w/ replies, xml ) Need Help??


in reply to Select COUNT in MySQL

Alternatively, you may use selectrow_array to get a single value.

my ($crows) = $dbh->selectrow_array($sqlc); print $crows;

Notice that $crows was declared in list context, to avoid side effects.


Comment on Re: Select COUNT in MySQL
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://465030]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (8)
As of 2014-12-26 12:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (171 votes), past polls