Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^3: DBI place holder for sub query problem

by olus (Curate)
on Jan 02, 2008 at 22:06 UTC ( #660064=note: print w/ replies, xml ) Need Help??


in reply to Re^2: DBI place holder for sub query problem
in thread DBI place holder for sub query problem

If you are using a sub-query then the parenthesis are needed. Just omit the single quotes.

$sth=$dbh->prepare("Update Customers set RESULTS = (?) where rec_no = +?");
From the error message, it seems like you are assigning RESULTS with something like SELECT.


Comment on Re^3: DBI place holder for sub query problem
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (14)
As of 2015-03-27 23:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When putting a smiley right before a closing parenthesis, do you:









    Results (620 votes), past polls