Jump to content

comparing with upper and lower case letters


dadamssg87

Recommended Posts

How do i query rows with exact matches, including upper versus lower case letters? I have a column called 'code'. It's used for storing that rows unique random string. Right now, "lkbXN" and "lkbXn"(notice the N's) are the same thing. How do i make the query only pull up exact matches?

I read that i am still confused. I don't undersand collation. I'm using Mamp. It defaults all varchar to "latin1_swedish_ci". Do i need to change that or write a different query that uses "collate"?

 

Query in question:

 

SELECT * FROM Add_ons WHERE code = '$code'

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.