Re: Syntax for wildcard selection

From: Scott Holmes <scott(at)pacificnet(dot)net>
To: Jason Turner <jasont(at)indigoindustrial(dot)co(dot)nz>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Syntax for wildcard selection
Date: 2001-08-16 00:11:28
Message-ID: 200108160011.RAA01695@scotts.mynetwork.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

It would seem that my database has unseen garbage in the field being queried.
On further testing I find that

select *
from people
where peopcode LIKE 'AB%AH%'
order by peopcode;

works, however

select *
from people
where peopcode LIKE 'AB%AH'
order by peopcode;

does not. I do have nine records that meet the above criteria and are found
if the pattern ends with '%' but not without it.

Browse pgsql-general by date

  From Date Subject
Next Message John Clark Naldoza y Lopez 2001-08-16 01:26:10 Re: Syntax for wildcard selection
Previous Message Bruce Momjian 2001-08-15 23:54:30 Re: Syntax for wildcard selection