X-Original-To: pgsql-sql-postgresql.org@postgresql.org Received: from localhost (wm.hub.org [200.46.204.128]) by postgresql.org (Postfix) with ESMTP id 0DE779FB27E for ; Thu, 10 Aug 2006 19:59:44 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.128]) (amavisd-new, port 10024) with ESMTP id 24972-06 for ; Thu, 10 Aug 2006 22:59:40 +0000 (UTC) X-Greylist: delayed 00:09:45.747632 by SQLgrey- Received: from smtp01.lnh.mail.rcn.net (smtp01.lnh.mail.rcn.net [207.172.4.11]) by postgresql.org (Postfix) with ESMTP id B0E019FB1F5 for ; Thu, 10 Aug 2006 19:59:40 -0300 (ADT) Received: from 146-115-123-113.c3-0.smr-ubr2.sbo-smr.ma.cable.rcn.com (HELO [192.168.0.2]) ([146.115.123.113]) by smtp01.lnh.mail.rcn.net with ESMTP; 10 Aug 2006 18:49:52 -0400 X-IronPort-AV: i="4.08,112,1154923200"; d="scan'208"; a="255388962:sNHT36131526" Message-ID: <44DBB80D.50707@oisinglynn.com> Date: Thu, 10 Aug 2006 18:49:49 -0400 From: Oisin Glynn Reply-To: me@oisinglynn.com User-Agent: Thunderbird 1.5.0.5 (Windows/20060719) MIME-Version: 1.0 To: Juliann Meyer CC: pgsql-sql@postgresql.org Subject: Re: how do I check for lower case References: <44DB97C5.9090307@noaa.gov> In-Reply-To: <44DB97C5.9090307@noaa.gov> Content-Type: text/plain; charset=ISO-8859-1; format=flowed 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/76 X-Sequence-Number: 26034 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. > 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 > Not sure if this is over simple and perhaps this would be a concern on a very large table but select * from table where identifier <> upper(identifier); would give a list of all where the entry is not all uppercase? Oisin