Re: list non alphanumeric

Поиск
Список
Период
Сортировка
От John R Pierce
Тема Re: list non alphanumeric
Дата
Msg-id 5167AC5F.9000702@hogranch.com
обсуждение исходный текст
Ответ на list non alphanumeric  ("Baboo, Isa" <IBaboo@fnb.co.za>)
Ответы Re: list non alphanumeric
Список pgsql-general
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

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

Предыдущее
От: "Baboo, Isa"
Дата:
Сообщение: list non alphanumeric
Следующее
От: "Baboo, Isa"
Дата:
Сообщение: Re: list non alphanumeric