if exists postgresql code example Example: postgresql select exist select exists(select 1 from contact where id=12)