From: Steve Maring <smaring@gte-es.com>
To: pgsql-sql@postgresql.org
Subject: problem with LIKE predicate and wildcards
Date: Thu, 20 Aug 1998 13:50:28 +0000
Message-ID: <35DC29A3.92801C6E@gte-es.com> (raw)
The only way I have been able to get the LIKE predicate to work at all
is like this:
SELECT * FROM profiles WHERE lastname LIKE 'Marin%';
returns rows with lastname starting with 'Marin'
I cannot seem to say:
LIKE '%aring'
LIKE 'Ma%ing'
LIKE '_aring'
Specifically I need to search for rows like this:
SELECT id FROM profiles WHERE id LIKE '_____001';
should return:
TAMP-001
DALL-001
VANC-001
Can someone PLEASE help me. I'm desparate! Thanks.
-Steve Maring
smaring@gte-es.com
Tampa, FL USA
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: smaring@gte-es.com
Subject: Re: problem with LIKE predicate and wildcards
In-Reply-To: <35DC29A3.92801C6E@gte-es.com>
References: <35DC29A3.92801C6E@gte-es.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox