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

Re: Re: Mysql syntax error

by dbwiz (Curate)
on Nov 10, 2003 at 19:00 UTC ( [id://305938]=note: print w/replies, xml ) Need Help??


in reply to Re: Mysql syntax error
in thread Mysql syntax error from DBI

my $sth =$dbh ->prepare("UPDATE products set pname=? and unit=? and qty=? and cost=? WHERE id = ?");
should do the trick.

No. It shouldn't.

The SQL syntax is wrong (see meetraz's answer.

Log In?
Username:
Password:

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

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

    No recent polls found