Re: Case Insensitive - Mailing list pgsql-general

From Murtuza Zabuawala
Subject Re: Case Insensitive
Date
Msg-id CAKKotZQs3yrhtBCXX8BppotKij6tzRBkbjB=CLQGGRuRF3Qduw@mail.gmail.com
Whole thread Raw
In response to Case Insensitive  (Sridhar N Bamandlapally <sridhar.bn1@gmail.com>)
List pgsql-general
On Thu, Mar 28, 2019 at 1:50 PM Sridhar N Bamandlapally <sridhar.bn1@gmail.com> wrote:
Hi PG-General and Pgsql-Admin

Can we achieve CASE INSENSITIVE in PostgreSQL?

You can try 
select * from emp where ename ILIKE 'aaa';
 

I mean, need below way

postgres=# select * from emp;
 eid | ename
-----+-------
   1 | aaa
   2 | AAA
(2 rows)


postgres=# select * from emp where ename='aaa';
 eid | ename
-----+-------
   1 | aaa
   2 | AAA
(2 rows)
--above result is just an manual made example only


Thanks
Sridhar

pgsql-general by date:

Previous
From: Ben Madin
Date:
Subject: Re: Case Insensitive
Next
From: Andreas Kretschmer
Date:
Subject: Re: Case Insensitive