Re: Select Command - Mailing list pgsql-general

From Adrian Klaver
Subject Re: Select Command
Date
Msg-id 200710211508.04048.aklaver@comcast.net
Whole thread Raw
In response to Select Command  (Bob Pawley <rjpawley@shaw.ca>)
Responses Re: Select Command
List pgsql-general
On Sunday 21 October 2007 2:32 pm, 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.
>
> Bob Pawley

select col where col LIKE '%LT%';

See also:
http://www.postgresql.org/docs/8.2/interactive/functions-matching.html#FUNCTIONS-LIKE
--
Adrian Klaver
aklaver@comcast.net

pgsql-general by date:

Previous
From: andy
Date:
Subject: Re: SQL spec/implementation question: UPDATE
Next
From: Tom Lane
Date:
Subject: Re: SQL spec/implementation question: UPDATE