I'm working on a little Perl script to write m3u playlists for me based on id3 tag data I have in a SQLite table. I want a SQL statement like SELECT * FROM Songs WHERE Songs.Artist LIKE '%artist 1%' OR Songs.Artist LIKE '%artist 2%'
What is the syntax to pass an array of variables via ->prepare and ->execute and have them properly wrapped in % and single quotes?
In reply to SQL LIKE and Binding Variables by Mad_Mac
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |