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