Derby doesn't support this syntax:
UPDATE x SET (col1, col2, ...) = ( SELECT a,b,... FROM y ... )
(see this bug). Does anyone have a workaround other than creating a loop in Java which does the select and sends N updates back?
[EDIT] Note that I have 50 columns and a complex condition (joins with x and EXISTS and whatnot). So I'dd like to avoid repeating the SELECT 50 times, please :)