Re: locale and spanish acute

From: Tony Grant <tony(at)animaproductions(dot)com>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: Martín Marqués <martin(at)bugs(dot)unl(dot)edu(dot)ar>, PostgreSQL general list <pgsql-general(at)postgresql(dot)org>
Subject: Re: locale and spanish acute
Date: 2001-09-17 07:31:26
Message-ID: 1000711887.8351.3.camel@tonux
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Fri, 2001-09-14 at 15:49, Peter Eisentraut wrote:
> Martín Marqués writes:
>
> > select count(*) from tab1 where col1 LIKE '%mas%'
> >
> > but I would like it to catch rows with "más" also.

select count(*) from tab1 where col1 ILIKE to_ascii($1)

works for me.

The variable is passed via .jsp

Cheers

Tony Grant

--
RedHat Linux on Sony Vaio C1XD/S
http://www.animaproductions.com/linux2.html
Macromedia UltraDev with PostgreSQL
http://www.animaproductions.com/ultra.html

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tille, Andreas 2001-09-17 08:24:18 Disk performance (Was: How to make a REALLY FAST db server?)
Previous Message BELLON Michel 2001-09-17 07:22:34 Re: commercial usage with odbc