LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-28-2005, 11:15 PM   #1
radatan71
LQ Newbie
 
Registered: Oct 2005
Location: Philippines
Posts: 4

Rep: Reputation: 0
how to disable case sensitivity in mysql query in Fedora Linux Core 3


Guys,

I would like to know how to disable the case-sentivity in mysql queries under Fedora Linux Core 3.

Thanks.

Randy
 
Old 10-28-2005, 11:39 PM   #2
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
I presume you're talking about a string comparison in a mySQL "select". If so:

1. I thought that, in most cases, mysQL selects *were* case insensitive:
http://dev.mysql.com/doc/refman/5.0/...nsitivity.html

2. I also thought "collation order" was a property of the database when you create it, and not something you can turn on and off on a per-session or per-statement basis. This is true for Oracle and SQL-Server, the above link suggests that it's also true of mySQL (at least for that particular version of mySQL).

3. mySQL lets you use REGEXP (I don't know if mySQL regular expressions support the "i" qualifier, to make the comparison case insensitive).

... and, finally ...

4. You can always use LCASE() or UCASE() with your expression (making the string all-lower or all-upper case, respectively).

'Hope that helps .. PSM
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

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



Similar Threads
Thread Thread Starter Forum Replies Last Post
QUERY: what is Fedora Core 4 mystery CD? kevingpo Fedora 1 09-09-2005 07:11 AM
MySQL Upgrade in Fedora query. stefaandk Fedora 0 06-23-2005 08:25 AM
Activating case sensitivity in `sort' command? wirawan0 Linux - General 4 06-26-2004 10:20 AM
Case-Sensitivity in Python Odd_Bloke Programming 2 09-02-2003 04:20 PM
Case sensitivity in SED substitutions jkoch Programming 1 02-21-2003 04:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:34 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration