in reply to dbi mysql concat interpolation
my $sth = $dbh->prepare("SELECT CONCAT('My', '''', 'QL')");
You should use placeholders, though, to avoid the hard work:
my $sth = $dbh->prepare('SELECT CONCAT(?, ?, ?)'); $sth->execute(qw(My ' QL));
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: dbi mysql concat interpolation
by davido (Cardinal) on Feb 19, 2015 at 17:45 UTC |