Hi,
I have the following prepared statement:
UPDATE AAA_TABLE SET BBB_FIELD = ? WHERE CCC_FIELD IN (SELECT DISTINCT CCC_FIELD FROM AAA_TABLE WHERE DDD_FIELD IS NULL FETCH FIRST ? ROWS ONLY)
My problem is that the select sometimes returns 0 rows, which causes an error. Is this how DB2 works and is there a way around that problem?
My environment:
Windows 2000 SP3
WebSphere AS v4.0.4
Java 1.3.1
DB2 v7 (don't know patches etc.)
DB2 JDBC (don't know any version details)
I'm sorry I can't specify the versions in more details. If the problem could be due to a specific version, I could look into this.
Thanks in advance!