Case of strings - Mailing list pgsql-general

From Simon Windsor
Subject Case of strings
Date
Msg-id E1Awgi6-0007bk-00@gaul.cornfield.org.uk
Whole thread Raw
Responses Re: Case of strings  (Michael Chaney <mdchaney@michaelchaney.com>)
Re: Case of strings  (Paul Thomas <paul@tmsl.demon.co.uk>)
List pgsql-general

Hi

 

I have moved an application from MySQL to PgSQL, and after the making changes I thought all was ok.

 

However, I have just realised that

 

Where A = ‘STRING’

 

Is not the same as

 

Where A =’String’

 

Is there anyway I can force the PgSQL to accept case equivalence, or must I add upper()/lower() to force the case and then make string tests?

 

Ie Where upper(A)=upper(‘String’)

 

Many thanx

 

Simon

 

Simon Windsor

Eml: simon.windsor@cornfield.org.uk

Tel: 01454 617689

Mob: 07960 321599

 


--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Mailscanner thanks transtec Computers for their support.

pgsql-general by date:

Previous
From: "Bas Scheffers"
Date:
Subject: Re: Help with a query
Next
From: Sezai YILMAZ
Date:
Subject: PostgreSQL insert speed tests