I have a bunch of rows that I need to insert into table, but these inserts are always done in batches. So I want to check if a single row from the batch exists in the table
Use the EXISTS key word for TRUE / FALSE return:
select exists(select 1 from contact where id=12)