In many programming languages there is the basic equals operator which will see if the text of two strings are equal:
if ("Hi" == "hi") {
//this code runs
}
But there is also the strict equal to operator:
if ("Hi" === "hi") {
//this code will never run
}
Is there an equivalent operator for the above code snippet in MySQL? The =
operator just doesn't cut it. If I run:
SELECT * FROM users WHERE name = 'john';
MySQL will return rows with a John
, with a capital "J".
Thank you for your time.