Search Postgresql Archives

Re: Query inside RTF

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On jue, 2009-10-08 at 17:51 -0300, Emanuel Calvo Franco wrote:

> part=# select * from p  where i::text ~~ $$%\\\\''f3%$$;
>     i
> ----------
>  \\\\''f3
> (1 row)
> 
> I don't have any problem, wich enconding you are using?
> (select getdatabaseencoding(); )
> 

Thanks, now this works:

set standard_conforming_strings = 0;

select 
  idturno, 
  infres::text
from turno
where 
  infres::text ~~ $$%diagn\\\\'f3stico%$$;

This database has WIN1252 encoding.

-- 
Leonardo M. Ramé
Griensu S.A. - Medical IT Córdoba
Tel.: 0351-4247979


-- 
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux