MySQL Forums
Forum List  »  Perl

Re: Multiple inserts/updates through DBD::mysql
Posted by: Randy Clamons
Date: February 21, 2007 02:39PM

I'm a bit confused as to what you are actually trying to do. Your three statements--
update kalle set lars = 1; 
update kalle set leif = 2; 
update kalle set harry = 3;
Would update all rows of your table (kalle), setting the values of lars, leif, and harry to 1,2,3 respectively. If your table has only one row with the three columns, write as a single update statement:
UPDATE calle SET
     lars = 1,
     leif = 2,
     harry = 3
Since your sample code did not include a WHERE clause, that's about the best I can do.

Options: ReplyQuote


Subject
Written By
Posted
Re: Multiple inserts/updates through DBD::mysql
February 21, 2007 02:39PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.