Re: Syntax for wildcard selection - Mailing list pgsql-general

From Scott Holmes
Subject Re: Syntax for wildcard selection
Date
Msg-id 200108160011.RAA01695@scotts.mynetwork.net
Whole thread Raw
In response to Re: Syntax for wildcard selection  (Jason Turner <jasont@indigoindustrial.co.nz>)
Responses Re: Re: Syntax for wildcard selection  (will trillich <will@serensoft.com>)
List 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.





pgsql-general by date:

Previous
From: Killian May
Date:
Subject: Missing Sequence File
Next
From: "Danno"
Date:
Subject: check constraints