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;
In reply to Re: MySQL "Counter"?
by Heidegger
in thread MySQL "Counter"?
by powerhouse
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |