Re: Select Non Alpha Contents of a Column

Поиск
Список
Период
Сортировка
От Jeff Eckermann
Тема Re: Select Non Alpha Contents of a Column
Дата
Msg-id 20031229232145.90507.qmail@web20811.mail.yahoo.com
обсуждение исходный текст
Ответ на Select Non Alpha Contents of a Column  (Hunter Hillegas <lists@lastonepicked.com>)
Список 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 по дате отправления: