Help for this page

Select Code to Download


  1. or download this
    use Interpolation "'" => sub {"'".$db->quote($_)};
    my $sql = "update some_table where some_attr = $'{$some_string}'";
    
  2. or download this
    $some_string = $dbh->quote($some_string);
    my $sql = "update some_table where some_attr = '$some_string'";