Maybe this is what you are after:
my $sth = $dbh->prepare(q{SELECT * FROM Songs WHERE Songs.Artist LIKE +'%'+?+'%' OR Songs.Artist LIKE '%'+?+'%' }); ... $sth->execute($one,$two);
Jenda
Enoch was right!
Enjoy the last years of Rome.
In reply to Re: SQL LIKE and Binding Variables
by Jenda
in thread SQL LIKE and Binding Variables
by Mad_Mac
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |