6
votes
4answers
3k views

Pattern matching with LIKE, SIMILAR TO or regular expressions in PostgreSQL

I had to write a simple query where I go looking for people's name that start with a B or a D : SELECT s.name from spelers s WHERE s.name LIKE 'B%' or s.name like 'D%' order by 1 I was wondering ...