Create Database


  1. Which keyword is used to create a database?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: B

    The statement ‘CREATE DATABASE database_name;’ is used to create a database with the name ‘database_name’. A database qualifier should be used to specify the full name of the database.


  1. It is not required to have an access privilege for a database before selecting it with ‘USE’.











  1. View Hint View Answer Discuss in Forum

    Na

    Correct Option: A

    In order to select a database as the default database for the MySQL server using the ‘USE’ statement, some access privilege for the database needs to be granted or attained.



  1. Which keyword is the synonym for DATABASE?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: C

    In any statement where the word ‘DATABASE’ occurs, the keyword ‘SCHEMA’ can be used as a synonym in place of it. In the literal sense, SCHEMA refers to the structure of the database.


  1. Which statement is used to select a default database?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: C

    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. Which statement is used to see the definition for an existing database?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: B

    The statement ‘SHOW CREATE DATABASE’ is invoked to see the definition of an existing database in the MySQL server. It is followed by the qualified name of the database.