select *
where email ilike 'example@sqldat.com'
ilike likeに似ています ただし、大文字と小文字は区別されません。エスケープ文字の場合は、replace()を使用します
where email ilike replace(replace(replace($1, '~', '~~'), '%', '~%'), '_', '~_') escape '~'
または、テキストをエスケープする関数を作成することもできます。テキストの配列に使用
where email ilike any(array['example@sqldat.com', 'example@sqldat.com'])