pg.ddx.io pgsql-sql@postgresql.org mailing list archive
help / color / mirror / Atom feedPartial Search
2+ messages / 2 participants
[nested] [flat]
* Partial Search
@ 1999-12-01 14:07 pez@aiming.net
0 siblings, 1 reply; 2+ messages in thread
From: pez@aiming.net @ 1999-12-01 14:07 UTC (permalink / raw)
To: pgsql-sql
I am trying to do a query with a partial search but don't know the
syntax. eg. I want the word 'buff' to find 'buffalo' in the variable
'city'. Can anyone give me an example?
--
Cheers,
Derek
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: [SQL] Partial Search
@ 1999-12-01 17:03 Wim Ceulemans <wim.ceulemans@nice.be>
parent: pez@aiming.net
0 siblings, 0 replies; 2+ messages in thread
From: Wim Ceulemans @ 1999-12-01 17:03 UTC (permalink / raw)
To: pez@aiming.net; +Cc: pgsql-sql
pez@aiming.net wrote:
>
> I am trying to do a query with a partial search but don't know the
> syntax. eg. I want the word 'buff' to find 'buffalo' in the variable
> 'city'. Can anyone give me an example?
>
select * from table where city like '%buff%';
or case insensitive:
select * from table where city ~* 'buff';
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~1999-12-01 17:03 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
1999-12-01 14:07 Partial Search pez@aiming.net
1999-12-01 17:03 ` Wim Ceulemans <wim.ceulemans@nice.be>
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