X-Original-To: pgsql-sql-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 7BDC69FB321 for ; Thu, 10 Aug 2006 18:51:49 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 85244-02 for ; Thu, 10 Aug 2006 18:51:45 -0300 (ADT) X-Greylist: delayed 00:05:01.438811 by SQLgrey- Received: from alnrmhc11.comcast.net (alnrmhc11.comcast.net [206.18.177.51]) by postgresql.org (Postfix) with ESMTP id 08F119FB316 for ; Thu, 10 Aug 2006 18:51:44 -0300 (ADT) Received: from [70.192.212.233] (233.sub-70-192-212.myvzw.com[70.192.212.233]) by comcast.net (alnrmhc11) with SMTP id <20060810214640b1100n7k5be>; Thu, 10 Aug 2006 21:46:41 +0000 User-Agent: Microsoft-Entourage/11.2.3.060209 Date: Thu, 10 Aug 2006 17:46:52 -0400 Subject: Re: how do I check for lower case From: Daryl Richter To: Juliann Meyer , Message-ID: Thread-Topic: [SQL] how do I check for lower case Thread-Index: Aca8xn1lu+ogICi5EduV3gARJOT9EA== In-Reply-To: <44DB97C5.9090307@noaa.gov> Mime-version: 1.0 Content-type: text/plain; charset="US-ASCII" Content-transfer-encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests= X-Spam-Level: X-Archive-Number: 200608/74 X-Sequence-Number: 26032 On 8/10/06 4:32 PM, "Juliann Meyer" 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