pg.ddx.io pgsql-sql@postgresql.org mailing list archive
help / color / mirror / Atom feedcase insensitive search
3+ messages / 3 participants
[nested] [flat]
* case insensitive search
@ 2000-06-26 18:14 Joern Muehlencord <jomu@uni-paderborn.de>
2000-07-03 06:58 ` Re: case insensitive search tjk@tksoft.com <tjk@tksoft.com>
2000-07-03 19:46 ` Re: case insensitive search Mitch Vincent <mitch@venux.net>
0 siblings, 2 replies; 3+ messages in thread
From: Joern Muehlencord @ 2000-06-26 18:14 UTC (permalink / raw)
To: pgsql-sql
Hello together,
how can I handle case insensitive search in a table?
--
Linux is like wigwam - no windows, no gates, apache inside.
In diesem Sinne
Joern
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: case insensitive search
2000-06-26 18:14 case insensitive search Joern Muehlencord <jomu@uni-paderborn.de>
@ 2000-07-03 06:58 ` tjk@tksoft.com <tjk@tksoft.com>
1 sibling, 0 replies; 3+ messages in thread
From: tjk@tksoft.com @ 2000-07-03 06:58 UTC (permalink / raw)
To: jomu@uni-paderborn.de; +Cc: pgsql-sql
Joern,
select myfield from tablea where lower(myfield) = 'mysearch';
or
select myfield from tablea where myfield ~* 'mysearch';
Troy
>
> Hello together,
>
> how can I handle case insensitive search in a table?
>
>
>
> --
> Linux is like wigwam - no windows, no gates, apache inside.
> In diesem Sinne
> Joern
>
>
>
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: case insensitive search
2000-06-26 18:14 case insensitive search Joern Muehlencord <jomu@uni-paderborn.de>
@ 2000-07-03 19:46 ` Mitch Vincent <mitch@venux.net>
1 sibling, 0 replies; 3+ messages in thread
From: Mitch Vincent @ 2000-07-03 19:46 UTC (permalink / raw)
To: Joern Muehlencord <jomu@uni-paderborn.de>; pgsql-sql
SELECT whatever FROM wherever WHERE lower(yourfield) = 'this';
You can do it with a case inseneitive regex search but they can't use
indexes and can become very slow on large tables..
SELECT whatever FROM wherever WHERE yourfield ~* 'this';
lower() does leak a bit of memory from what I've heard on the list but I'm
sure someone is working on it..
-Mitch
----- Original Message -----
From: Joern Muehlencord <jomu@uni-paderborn.de>
To: gpsql-sql <pgsql-sql@postgresql.org>
Sent: Monday, June 26, 2000 2:14 PM
Subject: [SQL] case insensitive search
> Hello together,
>
> how can I handle case insensitive search in a table?
>
>
>
> --
> Linux is like wigwam - no windows, no gates, apache inside.
> In diesem Sinne
> Joern
>
>
>
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2000-07-03 19:46 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2000-06-26 18:14 case insensitive search Joern Muehlencord <jomu@uni-paderborn.de>
2000-07-03 06:58 ` tjk@tksoft.com <tjk@tksoft.com>
2000-07-03 19:46 ` Mitch Vincent <mitch@venux.net>
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