Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
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 exploiting the Monastery: (4)
As of 2023-03-23 08:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which type of climate do you prefer to live in?






    Results (60 votes). Check out past polls.

    Notices?