以下摘录取自我的Perl脚本,该脚本失败,因为我需要转义%
中的NOT LIKE 'IE%'
符号。有谁知道我怎么能这么做?
my @oDests = keys %$d;
foreach my $nDestID (@oDests) {
$sRes .= sprintf "\nSELECT * FROM symbol_destinations WHERE dest_id = %d AND symbol IN (SELECT sedol FROM symbols WHERE currency = 'GBX' AND ISIN NOT LIKE 'IE%')";
} # for each dest