Software Outsourcing, Offshore Software Development, Offshore Outsourcing Services, IT Outsourcing, Offshore Development
MySQL manual Offshore Software Outsourcing and Programming, IT Outsourcing Offshore Software Development  
Call Us Today: 1-800-678-9001
Offshore Software Outsourcing and Programming, IT Outsourcing Offshore Software Development

Home / Technical Support / MySQL

Key Offerings:

B2B and B2C E-Business Solutions

Offshore Software Development Outsourcing

Strategic Consulting

Offshore Software Outsourcing

About ALTOROS: ALTOROS Systems is headquartered in Tampa, Florida and maintains an office near Boston, Massachusetts and technology development center in Belarus and Russia. ALTOROS specializes on providing value-added e-commerce and web-based software development and offshore software outsourcing services to emerging enterprises helping them successfully plan and implement business initiatives.

Contact Us for more information.

Node: Case Sensitivity Operators, Next: , Prev: String comparison functions, Up: String functions
Case-Sensitivity
 
 
BINARY
The BINARY operator casts the string following it to a binary string.  This is an easy way to force a column comparison to be case-sensitive even if the column isn't defined as BINARY or BLOB:
mysql> SELECT "a" = "A";
        -> 1
mysql> SELECT BINARY "a" = "A";
        -> 0
 
BINARY string is a shorthand for CAST(string AS BINARY).  See Cast FunctionsBINARY was introduced in MySQL Version 3.23.0.
 
Note that in some context MySQL will not be able to use the index efficiently when you cast an indexed column to BINARY.
 
If you want to compare a blob case-insensitively you can always convert the blob to upper case before doing the comparison:
 
SELECT 'A' LIKE UPPER(blob_col) FROM table_name;
 
We plan to soon introduce casting between different character sets to make string comparison even more flexible.
 
Offshore Software Outsourcing company Russia Florida Massachusetts Boston Belarus, Offshore Software Development Services, Offshore Programming and IT OutsourcingOffshore Development, Programming  Services, Tampa FL Russia, E-commerce, Database, CRM, Financial Insurance Health Care Real EstateOffshore Software Development Services, Software Outsourcing Russia
HOME PAGE, Offshore Software Outsourcing Company, offshore IT outsourcing services, offshore 
software development Russia Massachusetts Florida New York CT VT RI software development