in reply to MySQL "Counter"?
According to SQL standard, such a statement is atomic. No two scripts could intercept each other calls and increment it only once. P.S. When programming databases, try not to use any database-dependent functions. Try to be portable.UPDATE mytable SET myfield = myfield + 1;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: MySQL "Counter"?
by valdez (Monsignor) on Feb 04, 2003 at 08:01 UTC |