pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Daryl Richter <daryl@eddl.us>
To: Juliann Meyer <Julie.Meyer@noaa.gov>
To: pgsql-sql@postgresql.org
Subject: Re: how do I check for lower case
Date: Thu, 10 Aug 2006 17:46:52 -0400
Message-ID: <C101218C.443F%daryl@eddl.us> (raw)
In-Reply-To: <44DB97C5.9090307@noaa.gov>

On 8/10/06 4:32 PM, "Juliann Meyer" <Julie.Meyer@noaa.gov> wrote:

> I have a table with a column, lets call it identifier, that is defined
> as varchar(8) that should never contain lower case letters.  Its a large
> table.  Is there a way to query the table to see if any values in this
> column are lower case and to get a list out?  The user interface
> application that users use prevents them from adding an entry in lower
> case  now, but didn't in earlier version.

select * from table where column ~ '[a-z]'

> 
> Julie
> 
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 1: if posting/reading through Usenet, please send an appropriate
>        subscribe-nomail command to majordomo@postgresql.org so that your
>        message can get through to the mailing list cleanly

-- 
Daryl

"Hell, there are no rules here-- we're trying to accomplish something."
    -- Thomas A. Edison





view thread (5+ messages)  latest in thread

Message-ID: <C101218C.443F%daryl@eddl.us>
Permalink:  ../C101218C.443F%25daryl@eddl.us/
Also on:    postgresql.org/message-id/C101218C.443F%daryl@eddl.us

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: daryl@eddl.us, Julie.Meyer@noaa.gov
  Subject: Re: how do I check for lower case
  In-Reply-To: <C101218C.443F%daryl@eddl.us>

* 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