Help for this page

Select Code to Download


  1. or download this
    my $sql='UPDATE products SET sku=? WHERE sku=?';
    my $sql_values = [$sku, $old_sku];
    $dbh->do($sql, undef, $sql_values);
    
  2. or download this
    DBD::mysql::db do failed: You have an error in your SQL syntax; check 
    +the manual that corresponds to your MySQL server version for the righ
    +t syntax to use near '' at line 1 at ...
    
  3. or download this
    my $sql='UPDATE products SET sku="'.$sku.'" WHERE sku="'.$old_sku.'"';
    $dbh->do($sql);