Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

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

by derby (Abbot)
on Jul 20, 2021 at 11:18 UTC ( #11135213=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
      my $rows= $dbh->selectall_arrayref( "SELECT * FROM table", { Slice =
    +> {} } );
    
  2. or download this
      printf "Executed Statement - returned (%d) rows\n", scalar( @$rows )
    +;
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (6)
As of 2023-02-07 23:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I prefer not to run the latest version of Perl because:







    Results (40 votes). Check out past polls.

    Notices?