Re: Method to detect certain characters in column?

From: Antonio Perez <renjin25(at)yahoo(dot)com>
To: pgsql-general(at)postgresql(dot)org, ianmmeyer(at)mac(dot)com
Subject: Re: Method to detect certain characters in column?
Date: 2008-06-23 21:22:46
Message-ID: 59364.26802.qm@web56209.mail.re3.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

use this

regular expression                             
~
regular expression - case insensitive     
~*

example

SELECT name FROM  table1 where name
~* '*Ã*'

check here

http://www.postgresql.org/docs/current/static/functions-matching.html

--- El lun 23-jun-08, Ian Meyer <ianmmeyer(at)gmail(dot)com> escribió:
De: Ian Meyer <ianmmeyer(at)gmail(dot)com>
Asunto: [GENERAL] Method to detect certain characters in column?
A: pgsql-general(at)postgresql(dot)org
Fecha: lunes, 23 junio, 2008, 5:58 pm

So I have a column that contains usernames that have characters such
as Ã(c)(R), for example: fuchÃ(c)r.. is there any way to find names
with non A-Za-z0-9?

Thanks in advance!
- Ian

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Alvaro Herrera 2008-06-23 21:47:39 Re: Method to detect certain characters in column?
Previous Message Tommy Gildseth 2008-06-23 21:13:04 Re: Method to detect certain characters in column?