Mysql miscellaneous


  1. Input handling can be customized with MySQL.











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: A

    With mysql, raw SQL statements can be entered. With MySQL programs input methods can be provided for the user that are more intuitive and easier to be used. So input handling is customized.


  1. What does ‘mysql_query()’ return on failure?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: A

    Both of the functions named ‘mysql_query()’ and ‘mysql_real_query()’ return zero for statements that succeed. They return non zero for failure. A statement is successfully executed if the server accepts it.



  1. The statement that exits a labeled flow-control construct is _____________.











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: D

    The ‘LEAVE’ statement is used to exit a labeled flow-control construct. This statement must appear within the construct that has the given label. The syntax of the statement is ‘LEAVE label’.


  1. What sets the association between one or more MyISAM tables and the named key cache?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: A

    ‘CACHE INDEX’ sets up an association between one or more MyISAM tables and the named key cache which must already exist. The INDEX privilege is needed for each table named in the statement.



  1. The MySQL double dashed comment style is same as the SQL standard.











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: A

    The MySQL double-dash (–) comment style is different from the comment style of standard SQL, which begins with just two dashes. It does not require the space before any following text.