[snip] tbl key int, primary key, auto increment val int I've inserted several dummy values so that my table looks like this:
key val 1 50 2 100 3 150 4 200 I can successfully run this query: UPDATE tbl SET val = val + 1 but THIS query fails: UPDATE tbl SET val = val + 1 WHERE key = 2 [/snip] Isn't 'key' a reserved word? HTH! Jay --------------------------------------------------------------------- Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail <[EMAIL PROTECTED]> To unsubscribe, e-mail <[EMAIL PROTECTED]> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php