in reply to Re^2: DBI search for forward slash
in thread DBI search for forward slash
But = only compares for identity. You want LIKE, and you want the % placeholder:
SELECT * FROM `texts` WHERE `string` LIKE '%/a/b/c%'
... or, with placeholders:
SELECT * FROM `texts` WHERE `string` LIKE ?
(and then in the ->execute() call, add the placeholders to your search string)
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: DBI search for forward slash
by luxs (Beadle) on Nov 08, 2020 at 08:33 UTC |
In Section
Seekers of Perl Wisdom