Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

checking mysql rows continuously

by bigup401 (Pilgrim)
on Dec 08, 2020 at 11:31 UTC ( #11124823=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    Id name  order status   created
    1  john  123    no       2020-07-06
    ...
    3  jane  987    no       2020-09-06
    4  deo   234    yes      2020-11-06
    
  2. or download this
    my $Check_status = $dbh->prepare("SELECT order FROM items ORDER BY cre
    +ated ASC LIMIT 1");   
    $Check_status->execute();
    my $status = $Check_status->fetchrow();
    
  3. or download this
    if ($status eq 'no') {
    # skip to next row and check
    }
    
  4. or download this
    if ($status eq 'yes') {
    # commit changes 
    # and then continue to check next row
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://11124823]
Approved by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (4)
As of 2021-04-11 07:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?