Like SQL Server , in MySQL also we can check case-sensitivity inside a query. For this we have to use “BINARY” keyword.
Lets say I have a Users Table having a column named as “FirstName” ofVarchar DataType.
Below are the records present inside this table. Id FirstName LastName JobTitle 2 albert Joseph n/w Engg 3 Bob Bette Software Engg |
If I write the query as :- The query will return 2 rows Id FirstName LastName JobTitle 2 albert Joseph n/w Engg To get only that record whose FirstName is “Albert”. We have to write the query as :- This query will return Id FirstName LastName JobTitle We can also declare a particular column as BINARY by using following query :- |