Article ID: 105337
Article Last Modified on 12/3/2003
BUG# OS/2: 1777 (4.2a) NT: 505 (4.2), 14895 (6.0/6.5)
If IGNORE_DUP_KEY is set and you give an UPDATE or INSERT statement
that creates duplicate keys, the row that causes the duplicates is
not added or changed. In fact, in the case of UPDATE , the row is
discarded.
...However, if the UPDATE or INSERT attempt affects multiple rows,
the other rows are added or changed as usual.
Name Age ---------------------- karl 19 smith 20 johns 24 mary 25The following query:
update test
set age=age+4
where name not like "%johns%"
fails with the errors:
-and-
name age -------------------- karl 23 johns 24 mary 29
Additional query words: update duplicates Windows NT
Keywords: kbbug kbprogramming kbpending KB105337