Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^3: Need help escaping literal string

by muba (Priest)
on Nov 15, 2012 at 02:20 UTC ( #1003916=note: print w/ replies, xml ) Need Help??


in reply to Re^2: Need help escaping literal string
in thread Need help escaping literal string

Typically it would look a little like this.

my $insert = "insert into table (vol) values (?)"; $dbh->do($insert, $values[8]);

Generally, the notion is that you never directly put variables into SQL statements.


Comment on Re^3: Need help escaping literal string
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (7)
As of 2015-07-30 06:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (270 votes), past polls