MySQL Database Operations


  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. What is the property of InnoDB that enforces foreign key relationships stay intact?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: A

    The storage engine responsible for providing foreign key support is InnoDB. It enforces that the rules guarantee the foreign key relationship stays intact with no mismatching of data.



  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.


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