Can you please print filenames and ensure that file name doesnt have any leading/trailing white space. Also I assume you have executed this query directly in DB to make sure that you are getting the results SELECT FILE_NAME FROM ROU_MERGE_BATCH where FILE_NAME IN ('abc.txt')
Also is fileNAmes a single file name or its a comma separated string ?
EDITED Issue is with the way you are passing comma separated string for IN caluse
Refer this link for using IN clause with Ibatis: