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
    }