Create Database
- Which keyword is used to create a database?
-
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.
- It is not required to have an access privilege for a database before selecting it with ‘USE’.
-
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.
- Which keyword is the synonym for DATABASE?
-
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.
- Which statement is used to select a default database?
-
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.
- Which statement is used to see the definition for an existing database?
-
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.