Re: Selecting all variations of job title in a list

Поиск
Список
Период
Сортировка
От Rich Shepard
Тема Re: Selecting all variations of job title in a list
Дата
Msg-id 29ffee7e-40a8-f911-4419-24ba8558f5db@appl-ecosys.com
обсуждение исходный текст
Ответ на Re: Selecting all variations of job title in a list  (Vincent Veyron <vv.lists@wanadoo.fr>)
Ответы Re: Selecting all variations of job title in a list
Re: Selecting all variations of job title in a list
Список pgsql-general
On Wed, 26 Nov 2025, Vincent Veyron wrote:

> As Ron wrote, a regexp would do it, I guess?
>
> SELECT * FROM people WHERE title ~ 'Asst Gen Mgr|Env Mgr|Gen Mgr|Mgr|Plant Mgr';
>
> Although in your example, you would get the same result with just:
>
> SELECT * FROM people WHERE title ~ 'Mgr';
>
> https://www.postgresql.org/docs/current/functions-matching.html#FUNCTIONS-POSIX-REGEXP

Vincent,

Learning postgres regexp is at the top of my list.

Thanks,

Rich



В списке pgsql-general по дате отправления: