TEXT in selection? - Mailing list pgsql-general

From Michael Remme
Subject TEXT in selection?
Date
Msg-id 9opr2j$1ph2$1@news.tht.net
Whole thread Raw
List pgsql-general
Hi,

does anybody know a way, how to implement the content of a field of type
TEXT
into a query?

if i am trying:
    select  *  from testtable WHERE  testTEXT LIKE '%testString%'

i am getting always an empty selection, although there is a record existing.
The same with

    select  *  from testtable WHERE  position ('testString' in testTEXT) >
0;

Additional, is there a way to use the UPPER()-function to the content of the
TEXT-field?

Thanks in advance,
Michael








pgsql-general by date:

Previous
From: Tatsuo Ishii
Date:
Subject: Re: Second byte of multibyte characters causing trouble
Next
From: Frank Joerdens
Date:
Subject: virtual filesystem atop a PostgreSQL database