Mysql Basic
- Which of the following statements is valid if ‘`sampledb`’ is a database and ‘`tbl`’ is a table in it?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: D
When quotes is being used to refer to a qualified name, the individual identifiers are quoted within the name separately. So, the database name `sampledb` and table name `tbl` are quoted separately.
- Case sensitivity in SQL statements does not vary for different operating systems of the machine on which the server is running.
-
View Hint View Answer Discuss in Forum
NA
Correct Option: A
The case sensitivity rules in SQL statements are different for different statement elements, depend on what is being referred to and also on the machine’s operating system on which the server is running.
- What is true about the following SQL statement?
SELECT * FROM Student;
-
View Hint View Answer Discuss in Forum
NA
Correct Option: D
The keywords and function names are not case sensitive in SQL. They can be named in any letter case. So, the above statement is correct and legal. It retrieves information from the table ‘Student’.
- The default case sensitivity of database and table names depends on ___________.
-
View Hint View Answer Discuss in Forum
NA
Correct Option: B
The default case sensitivity imposes a dependency on the operating system of the machine on which the MySQL server is running. Windows does not treat database and table names as case sensitive unlike Unix.
- Which of the following is case sensitive?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: D
The stored functions and stored procedure names in MySQL are not case sensitive. Event names are also not case sensitive. Unlike the standard SQL, the trigger names in MySQL is case sensitive.