Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Re: MySQL/Perl LIKE $string question

by peppiv (Curate)
on Jan 31, 2002 at 19:31 UTC ( #142493=note: print w/replies, xml ) Need Help??


in reply to Re: MySQL/Perl LIKE $string question
in thread MySQL/Perl LIKE $string question

Super thanks gav^! It works. Where did you find this? I hate posting questions when they are so easily answered.

peppiv


Update:
yes tachyon, been to that site many times and learned a lot! However, it didn't answer this particular question.
I appreciate it!
  • Comment on Re: Re: MySQL/Perl LIKE $string question

Replies are listed 'Best First'.
Re: Re: Re: MySQL/Perl LIKE $string question
by Masem (Monsignor) on Jan 31, 2002 at 21:08 UTC
    It's probably from how the placeholders are looked for in the query string. Since you're using MySQL, which IIRC doesn't have support for placeholders, that support is faked by the DBI level. Thus, it parses your string but doesn't look inside quoted blocks. So the placeholder in your "%?%" string isn't seen, and thus the DBI engine believes you have no placeholders, and fails on the execute.

    -----------------------------------------------------
    Dr. Michael K. Neylon - mneylon-pm@masemware.com || "You've left the lens cap of your mind on again, Pinky" - The Brain
    "I can see my house from here!"
    It's not what you know, but knowing how to find it if you don't know that's important

Re: Re: Re: MySQL/Perl LIKE $string question
by tachyon (Chancellor) on Jan 31, 2002 at 19:37 UTC

    Could I recommend this excellent article A short guide to DBI by our own dominus. It should get you on track in no time.

    cheers

    tachyon

    s&&rsenoyhcatreve&&&s&n.+t&"$'$`$\"$\&"&ee&&y&srve&&d&&print

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (3)
As of 2021-06-15 14:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What does the "s" stand for in "perls"? (Whence perls)












    Results (72 votes). Check out past polls.

    Notices?