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

Prepared query not accepting || instruction at execution

by jpfarmer (Pilgrim)
on Dec 28, 2002 at 15:13 UTC ( [id://222734]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $filter = "('Y' || 'N')";
    my $sth = $dbh->prepare(q{SELECT name FROM catagories WHERE catagories
    +.workrelated = ? ORDER BY name});
    $sth->execute($filter);
    
  2. or download this
    my $sth = $dbh->prepare(q{SELECT name FROM catagories WHERE catagories
    +.workrelated = ? ORDER BY name});
    $sth->execute("('Y' || 'N')");
    
  3. or download this
    my $sth = $dbh->prepare(q{SELECT name FROM catagories WHERE catagories
    +.workrelated = ('Y' || 'N') ORDER BY name});
    $sth->execute();
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (6)
As of 2024-04-18 07:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found