Mysql Basic
- Which server mode value enables use of double quotes to wrap identifier names?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: C
In MySQL, use of double quotes is enabled when the server SQL mode ‘ANSI_QUOTES’ is set. The use of backticks is still allowed. For example, SELECT TABLE “my table” is a statement that is allowed.
- What does a fully qualified table name consist of?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: C
MySQL identifiers use qualifiers. An element of a database has a fully qualified name. A database table in MySQL has the fully qualified name as the database name followed by the table name.
- What is the maximum length for alias names in terms of characters?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: D
The identifiers in MySQL have a maximum length of 64 characters. However, the alias names for identifiers can have the number of characters up to 256. Aliases can also be quoted or unquoted.
- Which server mode value disables use of built in function names as identifiers?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: B
The Server SQL mode value ‘IGNORE_FUNC’ is used to restrict the identifier naming conventions. When this is enabled, the names of built in functions can no longer be used as identifiers.
- If no database has been selected, specifying a database qualifier is necessary.
-
View Hint View Answer Discuss in Forum
NA
Correct Option: B
When no database has been selected, not specifying the database qualifier would be confusing. A table cannot be referred to if the database qualfier is absent, since it would be unclear as to which database it belongs to.