SQL CREATE DATABASE STATEMENT
AND SQL DROP DATABASE STATEMENT
DATABASE SYSTEM 2
ANGELO T. RETITA
IT-INSTRUCTOR
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.
SQL CREATE DATABASE STATEMENT
 The CREATE DATABASE statement is used to create a new SQL database.
SYNTAX
CREATE DATABASE databasename;
CREATE DATABASE EXAMPLE
CREATE DATABASE testDB;
Databases
Before
Databases
After
SQL DROP DATABASE STATEMENT
 The DROP DATABASE statement is used to drop an existing SQL database.
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!
DROP DATABASE EXAMPLE
 The following SQL statement drops the existing database "testDB":
DROP DATABASE testDB;
Databases
Before
Databases
After

1.1 sql create and drop database statement

  • 1.
    SQL CREATE DATABASESTATEMENT AND SQL DROP DATABASE STATEMENT DATABASE SYSTEM 2 ANGELO T. RETITA IT-INSTRUCTOR
  • 2.
    OBJECTIVES  1. Willbe 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 DATABASESTATEMENT  The CREATE DATABASE statement is used to create a new SQL database.
  • 4.
  • 5.
    CREATE DATABASE EXAMPLE CREATEDATABASE testDB; Databases Before Databases After
  • 6.
    SQL DROP DATABASESTATEMENT  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