There are multiple ways to accomplish your goal, which each have merits and issues. 1. Java for loop and look for each string one at a time 2. Convert your strings into a Postgres array and query all of them at once 3. Insert your strings into a table and execute a query to check them all at once If you want more help than this you should provide more specific details about your situation. Your question seems odd at first reading, especially the part where you want to find out which strings are NOT present. David J |