Re: Select Non Alpha Contents of a Column - Mailing list pgsql-general

From Jeff Eckermann
Subject Re: Select Non Alpha Contents of a Column
Date
Msg-id 20031229232145.90507.qmail@web20811.mail.yahoo.com
Whole thread Raw
In response to Select Non Alpha Contents of a Column  (Hunter Hillegas <lists@lastonepicked.com>)
List pgsql-general
--- Hunter Hillegas <lists@lastonepicked.com> wrote:
> Is there a way to select all rows where a certain
> column starts with
> non-alpha characters?
>
> I would like to select all the rows that don't start
> with letters.
>
> Possible?

Regular expressions would do what you want, e.g.
"select * from mytable where myfield !~ '^[a-zA-Z]';"
Look under "pattern matching" in the "functions and
operators" section of the manual (I think, working
from memory).

__________________________________
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree

pgsql-general by date:

Previous
From: Jeff Eckermann
Date:
Subject: Re: [pgsql-advocacy] Is my MySQL Gaining ?
Next
From: "B. van Ouwerkerk"
Date:
Subject: Re: Is my MySQL Gaining ?