| От | John Zwiebel |
|---|---|
| Тема | psql regular expression matching POSIX |
| Дата | |
| Msg-id | 1107815972.576122@sj-nntpcache-3 обсуждение исходный текст |
| Ответы |
Re: psql regular expression matching POSIX
|
| Список | pgsql-novice |
Could someone please provide me with the syntax for a REGEXP that will
match a column in a table?
ie, this works using "similar to":
select prod_id, prod_desc, vend_id from products where\
vend_id similar to '\[D|F]%'
In the docs:
pgsql/doc/html/functions-matching.html para 9.7.3
I'm suppose to be able to use POSIX regular expressions.
Say I want to match all the vendor IDs with "LL" located anywere
inside the vend_id.
select vend_id from products where <Now What???>
All of the examples in this section discuss "select substring"
All the variations I've tried of the following either are
syntax errors or 'type "vend_id" does not exist'.
SELECT vend_id from products where substring (vend_id '.*LL.*');
Thanks
В списке pgsql-novice по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера