MySQL Database Operations


  1. How is the output from PHP generated?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: C

    The interpreter switches between code mode back and text mode when it sees another special tag which signals the end of the code. This enables the mix of static text with dynamically generated results.


  1. Under which option are index changes not flushed until tables close?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: C

    In MySQL, the MyISAM recovery is important if the server is run with the ‘–delay-key-write’ option. Under this condition, the index changes are not flushed until the tables close.



  1. Which option suppresses output unless there are errors in the table?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: D

    In MySQL, the ‘–silent’ option suppresses the output unless there are errors in the tables. The ‘cron’ jobs typically generate a mail message if a job produces any output at all.


  1. Which of these is not optional?
    SELECT select_list FROM table_list WHERE row_constraint GROUP BY grouping_columns;











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: C

    Given above was a basic syntax of the SELECT statement. Everything in the syntax is optional except the ‘select_list’ option. All the others are free to be omitted, and will work fine.



  1. How many of these can replace ‘level’ in ‘–myisam-recover = level’?
    BACKUP, FORCE, QUICK











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: A

    To enable MyISAM table recovery, the server is started with the ‘–myisam-recover = level’ option. The value of level is a comma-separated list of the following: BACKUP, FORCE, QUICK or DEFAULT.