How to Implement Custom SQL using execSQL build in Service

Hi all,

I need to implement a custom sql statement to get a list of file names from the table. The SQL is

Select File_Name from table where file_id in ( ? )

Here I need to supply comma seperated value to the sql. I tried doing this with execSQL build-in-service, but i its not working. Thanks in Advance.