Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: PerlDBI and quoting

by haukex (Archbishop)
on Feb 05, 2021 at 12:21 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11127925]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (5)
As of 2024-04-25 12:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found