We help IT Professionals succeed at work.
Get Started

SQLite case sensitive

tonelm54
tonelm54 asked
on
3,111 Views
Last Modified: 2015-10-14
Ive been trying to make a query case sensitive in SQLite but cannot get it to tell the difference between "rv" and "Rv". For example:-
Select * from cars where `design` = 'rv';

Ive searched google and found loads of articles about making it insensitive so "rv" and "Rv" will return the same recordset, but dont know how to do it in reverse.

I did think of trying to change the values into either binary or hex (as obviously R and r will return different values) however cannot find any built in functions to do this.

I have also throught about returning the recordset, then using PHP to do the case comparison, but this seems a but overkill.

Any suggestions / ideas?

Thank you
Comment
Watch Question
Technology Scientist
CERTIFIED EXPERT
Commented:
This problem has been solved!
Unlock 1 Answer and 5 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE