Re: Regular Expressions and SELECT - Mailing list pgsql-novice

From Desmond Coughlan
Subject Re: Regular Expressions and SELECT
Date
Msg-id 20030122223331.GC33534@lievre.voute.net
Whole thread Raw
In response to Regular Expressions and SELECT  (Desmond Coughlan <psql@zeouane.org>)
List pgsql-novice
Le Wed, Jan 22, 2003 at 10:08:12PM +0000, Desmond Coughlan a écrit ...

> 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 ..?  :-(

Perhaps a 'WHERE' wouldn't have gone astray.  Doh !!

Sorry about that.  :-)

D.

--
Desmond Coughlan          |'Io non mori, e non rimasi vivo'
desmond@zeouane.org
http://www.zeouane.org

Attachment

pgsql-novice by date:

Previous
From: Desmond Coughlan
Date:
Subject: Regular Expressions and SELECT
Next
From: Doug Silver
Date:
Subject: Re: Regular Expressions and SELECT