| От | douggorley@shaw.ca |
|---|---|
| Тема | Re: Regular Expressions and SELECT |
| Дата | |
| Msg-id | 4c93249c08.49c084c932@shaw.ca обсуждение исходный текст |
| Ответ на | Regular Expressions and SELECT (Desmond Coughlan <psql@zeouane.org>) |
| Список | pgsql-novice |
I haven't done this myself, but I strongly suspect the usage is more like
SELECT * FROM sometable WHERE somefield ~ '^d' ;
Doug Gorley | douggorley@shaw.ca
Hi,
I'm working through Bruce Momjian's online tutorial on PostreSQL, and am
now trying to get my head around regular expressions. The tutorial says
that ~ '^X' where 'X' is a character, will find table entries beginning
with that character.
When I try it ...
SELECT * FROM testdb ~'^d' ;
ERROR: parser: parse error at or near "~"
I get this, irrespective of the regular expression that I use. It _is_ a
tilde, isn't it ? Or is my eyesight going ..? :-(
Thanks.
D.
--
Desmond Coughlan |'Io non mori, e non rimasi vivo'
desmond@zeouane.org
http://www.zeouane.org
В списке pgsql-novice по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера