From: A. Kretschmer <andreas.kretschmer@schollglas.com>
To: pgsql-sql@postgresql.org
Subject: Re: Results per letter query
Date: Thu, 21 Jun 2007 13:12:06 +0200
Message-ID: <20070621111206.GK1405@a-kretschmer.de> (raw)
In-Reply-To: <467A59F9.4030801@androme.es>
References: <467A406A.3060907@androme.es>
<20070621100425.GH1405@a-kretschmer.de>
<467A562C.2020504@androme.es>
<20070621105045.GJ1405@a-kretschmer.de>
<467A59F9.4030801@androme.es>
am Thu, dem 21.06.2007, um 12:59:05 +0200 mailte Dani CastaƱos folgendes:
> >change the generate_series(65,90) to generate_series(32,90)
> >
> >
> >Andreas
> >
> With only changing 65 to 32:
>
> ERROR: invalid regular expression: parentheses () not balanced
>
> I think, it could be a problem with UPPER and non alphabetical chars
No, the ~ - operator (Regex), try this:
select chr(x), count(1) from generate_series(32,90) x, w where upper(substring (w.t from 1 for 1)) = chr(x) group by 1;
Andreas
--
Andreas Kretschmer
Kontakt: Heynitz: 035242/47150, D1: 0160/7141639 (mehr: -> Header)
GnuPG-ID: 0x3FFF606C, privat 0x7F4584DA http://wwwkeys.de.pgp.net
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: andreas.kretschmer@schollglas.com
Subject: Re: Results per letter query
In-Reply-To: <20070621111206.GK1405@a-kretschmer.de>
* 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