-
To create a database only if it doesn’t already exist, which clause is used?
-
- EXISTS IF
- CREATE EXISTS
- IF NOT EXISTS
- IF EXISTS
- None of these
Correct Option: C
The ‘CREATE DATABASE’ statement supports many optional values. To create a database named ‘my_db’ only if it doesn’t already exist, we write ‘CREATE DATABASE IF NOT EXISTS my_db’.