This document discusses the SQL CREATE DATABASE and DROP DATABASE statements. It explains that the CREATE DATABASE statement is used to create a new SQL database and has a syntax of CREATE DATABASE databasename;. The DROP DATABASE statement is used to drop an existing SQL database and has a syntax of DROP DATABASE databasename;. Examples are provided of each statement being used to create and drop the database "testDB".
8257 interfacing 2 in microprocessor for btech students
1.1 sql create and drop database statement
1. SQL CREATE DATABASE STATEMENT
AND SQL DROP DATABASE STATEMENT
DATABASE SYSTEM 2
ANGELO T. RETITA
IT-INSTRUCTOR
2. OBJECTIVES
1. Will be able to understand the SQL CREATE DATABASE Statement.
2. Will be able to determine the syntax of SQL CREATE DATABASE Statement.
3. Will be able to understand the SQL DROP DATABASE Statement.
4. Will be able to determined the syntax of SQL DROP DATABASE Statement.
3. SQL CREATE DATABASE STATEMENT
The CREATE DATABASE statement is used to create a new SQL database.
6. SQL DROP DATABASE STATEMENT
The DROP DATABASE statement is used to drop an existing SQL database.
7. SYNTAX
DROP DATABASE databasename;
Note: Be careful before dropping a database. Deleting a database will result in loss of complete
information stored in the database!
8. DROP DATABASE EXAMPLE
The following SQL statement drops the existing database "testDB":
DROP DATABASE testDB;
Databases
Before
Databases
After