pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Gregory W Burnham <gburnham@sfu.ca>
To: Andy Lewis <alewis@themecca.net>
To: pgsql-sql@hub.org
Subject: Re: [SQL] Case insensitive searchs
Date: Sun, 18 Apr 1999 11:16:13 -0700
Message-ID: <009501be89c7$91e42da0$8d0835d1@bconnected.net> (raw)
References: <Pine.LNX.4.05.9904181302020.21586-100000@tmg.themecca.net>

I'm sure the syntax here is wrong, and I'm sure I'll be
corrected : )

But can't you do something like this:

select distict from the_table where upper(city_name) = upper("san antonio");

Gregory W Burnham
Software Engineer
Excite Labs
Faculty Of Education
Simon Fraser University
Vancouver, BC, V5A 1S6
604 291 3615 (ph)
604 291 5679 (fx)

----- Original Message -----
From: Andy Lewis <alewis@themecca.net>
To: <pgsql-sql@hub.org>
Sent: Sunday, April 18, 1999 11:14 AM
Subject: [SQL] Case insensitive searchs


> I have a table that has city names in it. Some of the cities have a number
> of different cases. For instance I may have:
>
> San Antonio
> san antonio
> San antonio
> SAN ANTONIO
>
> My question is how can I do a distinct search for all cities and only get
> one of each city?
>
> Thanks in advance.
>
>
>
>
>




view thread (7+ messages)  latest in thread

Message-ID: <009501be89c7$91e42da0$8d0835d1@bconnected.net>
Permalink:  ../009501be89c7$91e42da0$8d0835d1@bconnected.net/
Also on:    postgresql.org/message-id/009501be89c7$91e42da0$8d0835d1@bconnected.net

 · 

reply

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: gburnham@sfu.ca, alewis@themecca.net, pgsql-sql@hub.org
  Subject: Re: [SQL] Case insensitive searchs
  In-Reply-To: <009501be89c7$91e42da0$8d0835d1@bconnected.net>
  References: <Pine.LNX.4.05.9904181302020.21586-100000@tmg.themecca.net> <009501be89c7$91e42da0$8d0835d1@bconnected.net>

* 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