Grygonos has asked for the wisdom of the Perl Monks concerning the following question:
I have a query similar to this
SELECT someFields FROM mytable WHERE myqualifier LIKE ?
the variable being put into the substitution is entered by the user and chomped. What is the best way to accomplish this query and have the like work correctly. I want the wildcard on the right side of the substitution like
this is in MsAccess so it doesn't use the % operator for like. Does anyone have any idea what I should do to accomplish this?soandso like "test*"
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: variable substitution using Like in DBI
by BlueBlazerRegular (Friar) on Sep 11, 2003 at 21:02 UTC | |
by runrig (Abbot) on Sep 12, 2003 at 03:11 UTC | |
by Grygonos (Chaplain) on Sep 12, 2003 at 14:13 UTC | |
|
Re: variable substitution using Like in DBI
by jasonk (Parson) on Sep 11, 2003 at 19:13 UTC | |
by menolly (Hermit) on Sep 11, 2003 at 19:25 UTC | |
by Grygonos (Chaplain) on Sep 11, 2003 at 19:42 UTC | |
by menolly (Hermit) on Sep 11, 2003 at 20:09 UTC |