Re: Select Command - Mailing list pgsql-general

From Alvaro Herrera
Subject Re: Select Command
Date
Msg-id 20071021220108.GB12111@alvh.no-ip.org
Whole thread Raw
In response to Select Command  (Bob Pawley <rjpawley@shaw.ca>)
List pgsql-general
Bob Pawley wrote:
> I have a column with data structured as follows.
>
> 32TT - 0002
> 32LT- 0004
> 32PT-0005
>
> Is there a way of selecting all of the rows containing LT in that column??
>
>
> I have attempted variations of ' *LT* ' with out success.

LIKE '%LT%' perhaps?

Or ~ 'LT' (unanchored regex)

--
Alvaro Herrera       Valdivia, Chile   ICBM: S 39º 49' 18.1", W 73º 13' 56.4"
"El número de instalaciones de UNIX se ha elevado a 10,
y se espera que este número aumente" (UPM, 1972)

pgsql-general by date:

Previous
From: Bob Pawley
Date:
Subject: Select Command
Next
From: andy
Date:
Subject: Re: SQL spec/implementation question: UPDATE