MySQL Database Operations


  1. What is the Perl DBI?











  1. 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.


  1. For which table does ‘REPAIR TABLE’ not work?











  1. 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.



  1. The column not returned by ‘OPTIMIZE TABLE’ is _____________.











  1. 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.


  1. The statement that performs key distribution analysis and stores the distribution for the named tables is _____________.











  1. 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’.



  1. To perform consistency checks on a MyISAM table the statement is _____________.











  1. 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.