Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^3: DBI Row Limiting

by zdog (Priest)
on Sep 14, 2004 at 16:59 UTC ( [id://390910]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $sth = $dbh->prepare("SELECT foo, bar FROM table WHERE baz=?");
    
    $sth->execute( $baz );
    ...
    while ( @row = $sth->fetchrow_array ) {
        print "@row\n";
    }
    
  2. or download this
    my $LIMIT = 30;
    
    my $sth = $dbh->prepare("SELECT foo, bar FROM table WHERE baz=?");
    ...
    }
    
    #do stuff with @rows
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (4)
As of 2024-04-19 07:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found