MySQL Forums
Forum List  »  Perl

Re: UPDATE ... WHERE writing a new line
Posted by: Randy Clamons
Date: November 19, 2012 01:07PM

Try it like this:

my $sth = $dbh->prepare("UPDATE control_number SET ctrlnum='$max' WHERE id = 1");
$sth->execute;

You can only process a single statement. The semi-colon is not needed.

Options: ReplyQuote


Subject
Written By
Posted
November 17, 2012 10:34AM
Re: UPDATE ... WHERE writing a new line
November 19, 2012 01:07PM


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.