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

Re: SQLite: how to get a number of rows from SELECT query

by perlfan (Vicar)
on Jul 29, 2021 at 22:38 UTC ( [id://11135503]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $results_ref = $dbh->selectall_arrayref(....);
    if (@$results_ref) {
    ...
    # or just get $count, (using `scalar` for clarity but it's already in 
    +scalar
    # context so works without it here)
    my $count = scalar @$results_ref;
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (7)
As of 2024-03-28 22:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found