http://qs321.pair.com?node_id=11127925


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