Try something like this for your select and bind the user entered string to the parameter
Select * from mytable where myfield like '%' || ? || '%'--- print map { my ($m)=1<<hex($_)&11?' ':''; $m.=substr('AHJPacehklnorstu',hex($_),1) } split //,'2fde0abe76c36c914586c';
In reply to Re: DBI, quoting, and LIKE searches
by pfaut
in thread DBI, quoting, and LIKE searches
by Mr_Person
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |