my $sth = $dbh->prepare("SELECT CONCAT('My', '''', 'QL')"); #### my $sth = $dbh->prepare('SELECT CONCAT(?, ?, ?)'); $sth->execute(qw(My ' QL));