in reply to DBI, quoting, and LIKE searches
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';
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: DBI, quoting, and LIKE searches
by Anonymous Monk on Dec 26, 2002 at 17:21 UTC | |
by tye (Sage) on Dec 26, 2002 at 17:36 UTC | |
by Mr_Person (Hermit) on Dec 26, 2002 at 17:41 UTC | |
by Ryszard (Priest) on Dec 27, 2002 at 16:42 UTC | |
by Ryszard (Priest) on Dec 27, 2002 at 16:53 UTC | |
|