MySQL Interview questions


Total available count: 24
Subject - Databases
Subsubject - MySQL

Is Mysql query case sensitive?

MySQL queries are not case-sensitive by default. Following is a simple query that is looking for 'value'. However it will return 'VALUE', 'value', 'VaLuE', etc… Putting BINARY in front of the column will prevent the use of any index on that column.

Check the below example for your reference:

SELECT VERSION(), CURRENT_DATE;
SeLect version(), current_date;
seleCt vErSiOn(), current_DATE;

All of these examples are the same. It is not case sensitive.




Next 5 interview question(s)

1
How can you see all indexes defined for a table?
2
How do you login to MySql using Unix shell?
3
What is the difference between primary key and candidate key?
4
What does a TIMESTAMP do on UPDATE CURRENT_TIMESTAMP data type?
5
What are the drivers in MySQL?