MySQL Database Operations
- Which of these is preferred when stored procedures are not being used?
CLIENT_MULTI_STATEMENTS, mysql_set_server_option()
-
View Hint View Answer Discuss in Forum
NA
Correct Option: D
If the program does not use stored procedures anyone is suitable. If the program uses stored procedures and invokes a ‘CALL’ statement that returns a result set, the first method is better.
- The data directory subdirectory that corresponds to the nbdinfo database is ______________.
-
View Hint View Answer Discuss in Forum
NA
Correct Option: A
The sys directory corresponds to the sys schema. It provides a set of objects to interpret Performance Schema information. The ‘performance_schema’ directory corresponds to the Performance Schema.
- What is the maximum number of characters allowed for a database name to have?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: B
MySQL allows the database names and the table names to be maximum 64 characters long. The length of these names is also bound by the length allowed by the operating system on the machine.
- In the database directory of the database each view and trigger object is associated with how many files?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: C
Each view and trigger object is associated with one file in the database directory of the database containing that object. A view consists of an .frm file that contains the view definition.
- Each database has a data directory located under database directory.
-
View Hint View Answer Discuss in Forum
NA
Correct Option: B
In MySQL, each database has a database directory that is located under the data directory. The tables, views and triggers within a database correspond to files in the database directory.