MySQL Database Operations
- What is the Perl DBI?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: A
The Perl DBI is the Perl Database Interface. The work of the interface is to form a link between the application programming interface in C with all the other programming languages.
- For which table does ‘REPAIR TABLE’ not work?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: A
‘REPAIR TABLE’ works for MyISAM, ARCHIVE, and CSV tables. For MyISAM tables, it has the same effect as ‘myisamchk –recover’ tbl_name by default. This statement does not work with views.
- The column not returned by ‘OPTIMIZE TABLE’ is _____________.
-
View Hint View Answer Discuss in Forum
NA
Correct Option: D
‘OPTIMIZE TABLE’ table catches and throws any errors that occur while copying table statistics from the old file to the newly created file. It returns a result set of columns.
- The statement that performs key distribution analysis and stores the distribution for the named tables is _____________.
-
View Hint View Answer Discuss in Forum
NA
Correct Option: A
‘ANALYZE TABLE’ performs a key distribution analysis and stores the distribution for the named table or tables. For the MyISAM tables, this statement is equivalent to using ‘myisamchk –analyze’.
- To perform consistency checks on a MyISAM table the statement is _____________.
-
View Hint View Answer Discuss in Forum
NA
Correct Option: C
In order to perform consistency checks or table repairs on a MyISAM table a ‘CHECK TABLE’ or ‘REPAIR TABLE’ statement is issued. The ‘mysqlcheck’ program can also be invoked.