Re: [SQL] upper() and lower() on varchar
От | Sferacarta Software |
---|---|
Тема | Re: [SQL] upper() and lower() on varchar |
Дата | |
Msg-id | 4606.980902@bo.nettuno.it обсуждение исходный текст |
Ответ на | upper() and lower() on varchar (Maarten Boekhold <maartenb@dutepp2.et.tudelft.nl>) |
Ответы |
Re: [SQL] upper() and lower() on varchar
|
Список | 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.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
В списке pgsql-sql по дате отправления: