INSERT INTO data (skey, svalue) VALUES ('Stuff', 'Ge 1:1-more &stuff& here ');
####
$dbh->do("INSERT OR REPLACE INTO data (skey, svalue) VALUES ('Stuff', 'Ge 1:1-more &stuff& here ''');");
####
$VAR1 = {
'Stuff' => {
'svalue' => 'Ge 1:1-more &stuff& here \'',
'skey' => 'Stuff'
}
};
####
$dbh->do(
q/INSERT OR REPLACE INTO data (skey, svalue) VALUES ('Stuff', 'literal dollar sign: $, literal single quote: '', literal ampersand: &');/
);
####
my $sth = $dbh->prepare(
'INSERT OR REPLACE INTO data (skey, svalue) VALUES (?, ?);'
);
$sth->bind_param(1, $skey);
$sth->bind_param(2, $svalue);
$sth->execute();