Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
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;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Updating a mysql row
by imp (Priest) on Feb 22, 2007 at 21:34 UTC | |
|
Re: Updating a mysql row
by Herkum (Parson) on Feb 22, 2007 at 22:41 UTC | |
by Anonymous Monk on Feb 22, 2007 at 23:03 UTC | |
by imp (Priest) on Feb 22, 2007 at 23:27 UTC | |
by Herkum (Parson) on Feb 23, 2007 at 02:08 UTC |