Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Prepared query not accepting || instruction at execution

by bart (Canon)
on Dec 28, 2002 at 16:58 UTC ( [id://222753]=note: print w/replies, xml ) Need Help??


in reply to Prepared query not accepting || instruction at execution

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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://222753]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (4)
As of 2024-03-29 02:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found