From: | Sferacarta Software <sferac(at)bo(dot)nettuno(dot)it> |
---|---|
To: | pgsql-sql(at)postgresql(dot)org, Maarten Boekhold <maartenb(at)dutepp2(dot)et(dot)tudelft(dot)nl>, M(dot)Boekhold(at)et(dot)tudelft(dot)nl |
Subject: | Re: [SQL] upper() and lower() on varchar |
Date: | 1998-09-02 12:33:28 |
Message-ID: | 4606.980902@bo.nettuno.it |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
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(dot)Boekhold(at)et(dot)tudelft(dot)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(at)bo(dot)nettuno(dot)it
From | Date | Subject | |
---|---|---|---|
Next Message | Maarten Boekhold | 1998-09-02 13:40:44 | Re: [SQL] upper() and lower() on varchar |
Previous Message | Sergei Barbarash | 1998-09-02 07:07:42 | indexing datetime |