Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^2: Update Sqlite References

by NetWallah (Canon)
on Jan 06, 2017 at 05:37 UTC ( [id://1179059]=note: print w/replies, xml ) Need Help??


in reply to Re: Update Sqlite References
in thread Update Sqlite References

Yes - the reason your original code:
$dbh->do ('UPDATE Data SET Tag1=?, Tag2=? WHERE ID=$ID_read VALUES (?, + ?)',
did not work is that $ID will NOT get interpolated, since the string is in single quotes.

It could be fixed by:

$dbh->do ("UPDATE Data SET Tag1=?, Tag2=? WHERE ID=$ID_read VALUES (?, + ?)", # = + =

        ...it is unhealthy to remain near things that are in the process of blowing up.     man page for WARP, by Larry Wall

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (5)
As of 2024-04-23 22:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found