MySQL Database Operations


  1. What is the statement used to select a default database?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: D

    MySQL has the facility to use various statements specifically at the database level. For selecting a default database, the keyword or clause used is the ‘USE’ statement.


  1. What is the synonym for CHARACTER SET?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: D

    ‘CHARACTER SET’ can be abbreviated into ‘CHARSET’ and can be used in the same contexts and statements where ‘CHARACTER SET’ is used. ‘charset’ is the server-supported character set.



  1. What is the maximum collations a character set can have?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: B

    The MySQL server allows simultaneous use of multiple character sets. A given character set is allowed to have one or more collations. It can be chosen according to the need of the database.


  1. The option that executes all SQL statements in a SQL script irrespective of the number of errors is ______________.











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: C

    If SQL queries in a file are run using mysql in batch mode, mysql either quits after the first error. If the –force option is specified all the queries are executed indiscriminately.



  1. mysql_next_result() does not return.











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: A

    The function ‘mysql_next_result()’ returns a status and initiates retrieval of the next set if more results are available. The status is zero if more results are available and -1 if not.