End thenSELECT * FROM Songs WHERE Songs.Artist LIKE ? OR Songs.Artist LIKE '?
s/%/%%/ for $artist1, $artist2; $dbh->execute("%$artist1%", "%$artist2%");
(I hope I remember correctly that % is escaped as %% in LIKE queries).
In reply to Re: SQL LIKE and Binding Variables
by moritz
in thread SQL LIKE and Binding Variables
by Mad_Mac
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |