in reply to SQL LIKE and Binding Variables
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: SQL LIKE and Binding Variables
by Your Mother (Archbishop) on Nov 03, 2009 at 18:26 UTC | |
by erix (Prior) on Nov 03, 2009 at 19:06 UTC | |
|
Re^2: SQL LIKE and Binding Variables
by Mad_Mac (Beadle) on Nov 06, 2009 at 17:07 UTC | |
by Jenda (Abbot) on Nov 06, 2009 at 17:42 UTC | |
by Mad_Mac (Beadle) on Nov 06, 2009 at 22:40 UTC | |
by Mad_Mac (Beadle) on Nov 06, 2009 at 22:23 UTC |