1.1 sql create and drop database statement

MLGCollegeofLearning 38 views 8 slides Nov 23, 2020
Slide 1
Slide 1 of 8
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8

About This Presentation

The CREATE DATABASE statement is used to create a new SQL database.


Slide Content

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
Tags