I want to do the following command in a SSIS Package to DB2.
UPDATE MyTable
SET Col1 = ?,
Col2 = ?
WHERE Col3 IN (?)
The Parameters are connected and the package is finished successfully but no row is updated. The Col3 contains values like 123
, 452
and so on and the third parameter is a string with a content like 345,432,456,432,667,123,456
.
What have I to change to be able to update the rows?
I tried it with the following. In SQL Server it would work but in DB2 not.
UPDATE MyTable
SET Col1 = ?,
Col2 = ?
WHERE ? LIKE '%' CONCAT Col3 CONCAT '%'
Edit
The value in the third Parameter is '345','432','456','432','667','123','456'
. The content in Col3 is also a string.