pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Sferacarta Software <sferac@bo.nettuno.it>
To: pgsql-sql@postgresql.org, Maarten Boekhold <maartenb@dutepp2.et.tudelft.nl>
To: M.Boekhold@et.tudelft.nl
Subject: Re: [SQL] upper() and lower() on varchar
Date: Wed, 2 Sep 1998 14:33:28 +0200
Message-ID: <4606.980902@bo.nettuno.it> (raw)
References: <Pine.SUN.3.91.980901120253.7792A-100000@dutepp2.et.tudelft.nl>

Hello Maarten,

martedì, 1 settembre 98, you wrote:

MB> Hi,

MB> Is there a way to get upper() and lower() to work on a varchar column? It 
MB> seems like these functions are only defined on the text datatype (in 6.3.2).

MB> I guess what I need in this case is some way to convert varchar to text. 
MB> Will (text_in(varchar_out(column)) work?

MB> Maarten

MB> _____________________________________________________________________________
MB> | TU Delft, The Netherlands, Faculty of Information Technology and Systems  |
MB> |                   Department of Electrical Engineering                    |
MB> |           Computer Architecture and Digital Technique section             |
MB> |                          M.Boekhold@et.tudelft.nl                         |
MB> -----------------------------------------------------------------------------

It works for me (6.3.2)
take a look:

create table a(a varchar(10));
insert into a values ('AAA');
insert into a values ('aaa');

select * from tbl;
fld
---
aaa
AAA
(2 rows)

select * from tbl where upper(fld)='AAA';
fld
---
aaa
AAA
(2 rows)


Best regards,
   Jose'                            mailto:sferac@bo.nettuno.it





view thread (3+ messages)  latest in thread

Message-ID: <4606.980902@bo.nettuno.it>
Permalink:  ../4606.980902@bo.nettuno.it/
Also on:    postgresql.org/message-id/4606.980902@bo.nettuno.it

 · 

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: sferac@bo.nettuno.it, maartenb@dutepp2.et.tudelft.nl, M.Boekhold@et.tudelft.nl
  Subject: Re: [SQL] upper() and lower() on varchar
  In-Reply-To: <4606.980902@bo.nettuno.it>
  References: <Pine.SUN.3.91.980901120253.7792A-100000@dutepp2.et.tudelft.nl> <4606.980902@bo.nettuno.it>

* 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