Perl-Sensitive Sunglasses | |
PerlMonks |
Re: Prepared query not accepting || instruction at executionby bart (Canon) |
on Dec 28, 2002 at 16:58 UTC ( [id://222753]=note: print w/replies, xml ) | Need Help?? |
Try an SQL statement looking like:
SELECT name FROM catagories WHERE workrelated IN('Y','N') ORDER BY name
I don't think you can use a placeholder for this kind of filter. You'll have to use oldfashioned string interpolation. Be careful about quoting, if the strings aren't always this simple.
In Section
Seekers of Perl Wisdom
|
|