Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

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

by derby (Abbot)
on Jul 20, 2021 at 11:18 UTC ( [id://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?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (4)
As of 2024-04-25 05:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found