Re: list non alphanumeric

Поиск
Список
Период
Сортировка
От Baboo, Isa
Тема Re: list non alphanumeric
Дата
Msg-id EEF91A759041DC4FBB3103789098746C0B3A4CB7@FRGR1D1MX04.services.firstrand.net
обсуждение исходный текст
Ответ на Re: list non alphanumeric  (John R Pierce <pierce@hogranch.com>)
Ответы Re: list non alphanumeric
Re: list non alphanumeric
Список pgsql-general

Hi

 

Thanks for the response but I tried that and it does not work here is an example of names which still display.

 

test

sadadds

Hillary

BEN NAME

ALAN MCGARVEY +

 

 

From: pgsql-general-owner@postgresql.org [mailto:pgsql-general-owner@postgresql.org] On Behalf Of John R Pierce
Sent: 12 April 2013 08:41 AM
To: pgsql-general@postgresql.org
Subject: Re: [GENERAL] list non alphanumeric

 

On 4/11/2013 11:23 PM, Baboo, Isa wrote:

Firstly let me mention I am a noob to postgres,DB and sql anyway, I have a column with First names and need to list names that have non-alphanumeric characters in them like + or * and the list goes on.  I did google a bit and tried:

select * from TABLE where first_name not like '%[a-z0-9]%';


you'll probably have to use a regex for that.

something like...  (my regex is really rusty)

       ... WHERE first_name !~ '^[a-z0-9]*$';




-- 
john r pierce                                      37N 122W
somewhere on the middle of the left coast

To read FirstRand Bank's Disclaimer for this email click on the following address or copy into your Internet browser:
https://www.fnb.co.za/disclaimer.html

If you are unable to access the Disclaimer, send a blank e-mail to firstrandbankdisclaimer@fnb.co.za and we will send you a copy of the Disclaimer.

В списке pgsql-general по дате отправления:

Предыдущее
От: John R Pierce
Дата:
Сообщение: Re: list non alphanumeric
Следующее
От: Ian Lawrence Barwick
Дата:
Сообщение: Re: list non alphanumeric