adplus-dvertising
frame-decoration

Question

To create a database only if it doesn’t already exist, which clause is used?

a.

IF EXISTS

b.

IF NOT EXISTS

c.

CREATE EXISTS

d.

EXISTS IF

Posted under MySQL Database

Answer: (b).IF NOT EXISTS

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. To create a database only if it doesn’t already exist, which clause is used?

Similar Questions

Discover Related MCQs

Q. If COLLATE is given without CHARACTER SET, the first part of the collation name gives the character set.

Q. MySQL stores the database character set and collation attributes in the file _________

Q. Which statement is used to see the definition for an existing database?

Q. Which statement makes changes to the database’s global attributes?

Q. Which statement is used to remove indexes on tables?

Q. Which storage engine is not available in MySQL 5.0?

Q. The default storage engine used is ____________

Q. What is the name of the format file for a table named my_tbl?

Q. In the CREATE TABLE statement, the engine name specified is case sensitive.

Q. Which keyword is used to create a table as a temporary copy of itself?

Q. Which storage engine enables to access tables from a MySQL server managed by another server?

Q. It is possible to drop multiple tables in the same statement.

Q. The default index type for MEMORY tables is __________

Q. The statement to change the table name is __________

Q. The general term for information about databases and the objects in MySQL is _________

Q. Which statement is used to determine the storage engine for individual tables?

Q. INFORMATION_SCHEMA is based on the SQL standard.

Q. Which disk data does FILES table in INFORMATION_SCHEMA store?

Q. The information about table index characteristics is stored in which table of INFORMATION_SCHEMA?

Q. Which table in INFORMATION_SCHEMA stores information about storage engines and server plugins?