PostgreSQL wildcard search for any of a list of words


/ Published in: SQL
Save to your folder(s)

PostgreSQL wildcard search for any of a list of words, returns true or false depending on whether its pattern matches the given string.


Copy this code and paste it in your HTML
  1. SELECT * FROM TABLE WHERE LOWER(COLUMN) SIMILAR TO '%(foo|bar)%';

Report this snippet


Comments


You need to login to view comments.