Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: PerlDBI and quoting

by haukex (Bishop)
on Feb 05, 2021 at 12:21 UTC ( #11127925=note: print w/replies, xml ) Need Help??


in reply to PerlDBI and quoting

However, when I look at the data content in SQL Developer, or when I then perform a 'select' on the table to extract the data later, it has enclosing quotes i.e. I don't get " CONTENT " - I get " 'CONTENT' ", which then interferes with string matching downstream. What have I missed?

You don't need both ->quote and placeholders (?, ?). Placeholders are The Right Way, so just use only those.

Replies are listed 'Best First'.
Re^2: PerlDBI and quoting
by jerryhone (Sexton) on Feb 05, 2021 at 14:20 UTC
    Thanks haukex - that works nicely! I was clearly being a a bit overprotective!
      I was clearly being a a bit overprotective!

      Better than not knowing Little Bobby Tables at all! :-)

        Tangential:

        at last Germany.pm online meeting we were discussing using emojis inside passwords.

        Since then I'm trying to register a properly named unicode character for little Bobby ... ;D

        Cheers Rolf
        (addicted to the Perl Programming Language :)
        Wikisyntax for the Monastery

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (4)
As of 2021-04-13 05:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?