Hello, I'm new to the mailing list.

I have a simple table:

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


Is this a problem with MySQL?


Take care,

Nik

---------------------------------------------------------------------
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

Reply via email to