Re: Select Command

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Bob Pawley <rjpawley(at)shaw(dot)ca>
Cc: PostgreSQL <pgsql-general(at)postgresql(dot)org>
Subject: Re: Select Command
Date: 2007-10-21 22:01:08
Message-ID: 20071021220108.GB12111@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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)

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Adrian Klaver 2007-10-21 22:08:03 Re: Select Command
Previous Message andy 2007-10-21 22:00:00 Re: SQL spec/implementation question: UPDATE