dbTalk Databases Forums  

select .. like ignore case

comp.databases.postgresql.novice comp.databases.postgresql.novice


Discuss select .. like ignore case in the comp.databases.postgresql.novice forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Marcin Gil
 
Posts: n/a

Default select .. like ignore case - 12-19-2003 , 02:52 AM






Is there a way to issue select .. like to ignore letter case?
Or do I have to use full text indexing?

Regards,
--
Marcin Gil
marcin.gil @ audax.com.pl, tel. 694972082
OIS Audax Sp. z o.o., ul. Barlickiego 4, 97-200 Tomaszów Mazowiecki
tel/fax (44) 7247530, 7244401

---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faqs/FAQ.html


Reply With Quote
  #2  
Old   
MaFa
 
Posts: n/a

Default Re: select .. like ignore case - 12-19-2003 , 03:06 AM






Quote:
Is there a way to issue select .. like to ignore letter case?
**For example:
select * from customers where upper(name) like '%JOHN%'

Quote:
Or do I have to use full text indexing?
**Full-text indexing is a whole other thing...


Bye:
MaFa




---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faqs/FAQ.html



Reply With Quote
  #3  
Old   
Marcin Gil
 
Posts: n/a

Default Re: select .. like ignore case - 12-19-2003 , 03:30 AM



MaFa wrote:

Quote:
select * from customers where upper(name) like '%JOHN%'
Thanks. I found that >>select * from documents where body ~ some_text'
also gives good results. I am only concerned about its effectiveness.

Quote:
**Full-text indexing is a whole other thing...
I've looked quite a bit at tsearch2.. too complicated for me for now.

--
Marcin Gil
marcin.gil @ audax.com.pl, tel. 694972082
OIS Audax Sp. z o.o., ul. Barlickiego 4, 97-200 Tomaszów Mazowiecki
tel/fax (44) 7247530, 7244401



---------------------------(end of broadcast)---------------------------
TIP 9: the planner will ignore your desire to choose an index scan if your
joining column's datatypes do not match



Reply With Quote
  #4  
Old   
Marcin Gil
 
Posts: n/a

Default Re: select .. like ignore case - 12-19-2003 , 03:59 AM



MaFa wrote:

Quote:
Is there a way to issue select .. like to ignore letter case?

**For example:
select * from customers where upper(name) like '%JOHN%'

The other answer I received was:
select ... ilike..

simple, eh?
--
Marcin Gil :: marcin.gil (AT) audax (DOT) com.pl
OIS Audax Sp. z o.o., ul. Barlickiego 4, 97-200 Tomaszów Mazowiecki
tel (44) 7247530 w/22, 7244401 w/22 -- fax w/25

---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to majordomo (AT) postgresql (DOT) org



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.