I'm trying to add +1 to the count field without having to do a separate call to the database just to pull in that value. Is there anyway I can do field_name = field_name +1?my $data = qq(UPDATE now_time SET time= NOW(), location="$ENV{'H +TTP_REFERER'}", count=... WHERE ip="$userip"); my $sth = $dbh->prepare($data); $sth->execute() or die $dbh->errstr;
In reply to Updating a mysql row by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |