Mysql Interview Question and Answers
16. |
If the value in the column is repeatable, how do you find out the unique values? |
|
SELECT DISTINCT user_firstname FROM users; |
17. |
Explain the difference between FLOAT, DOUBLE and REAL? |
|
FLOATs store floating point numbers with 8 place accuracy and take up 4 bytes. DOUBLEs store floating point numbers with 16 place accuracy and take up 8 bytes. REAL is a synonym of FLOAT for now. |
18. |
How do you get the current version of mysql? |
|
SELECT VERSION(); |
19. |
Is Mysql query has LETTERCASE? |
|
No.
Ex :
SELECT VERSION(), CURRENT_DATE;
select version(), current_date;
SeLeCt vErSiOn(), current_DATE;
|
20. |
What is the LIKE? |
|
A LIKE pattern match, which succeeds only if the pattern matches the entire value. |