Re: update count
| From: | Gerben | Date: | Wed, 16 Jun 2004 17:32:53 +0000 |
| Subject: | Re: update count | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-188415@lists.php.net to get a copy of this message | ||
LIMIT 1
"Bob Lockie" <bjlockie@lockie.ca> wrote in message
news:40D04DE4.4040602@lockie.ca...
> What is the best way to only do an update if it going to update only one
> row?
> I want to protect my code so that it won't accidentally update more than
> one row.
> I can do a select first but there must be an easier way. :-)