By : Dhirendra Chauahn
Database
We can perform three types task for Database
1. Create Database
2. Open Database
3. Delete Database
A database is an organized collection of structured information, or data,
typically stored electronically in a computer system. A database is usually
controlled by a database management system (DBMS).
Data within the most common types of databases in operation today is typically
modeled in rows and columns in a series of tables to make processing and data
querying efficient. The data can then be easily accessed, managed, modified,
updated, controlled, and organized. Most databases use structured query language
(SQL) for writing and querying data.
Create Database
“The CREATE DATABASE statement is used to create a new SQL
database.”
Syntax:
CREATE DATABASE databasename;
Example
CREATE DATABASE Mount;
Open Database
“The “ USE “ statement is used to Open or Replace database in MySql.”
Syntax:
USE databasename;
Example
USE Mount;
Delete Database
“The DROP DATABASE statement is used to drop an existing SQL
database.”
Syntax:
DROP DATABASE databasename;
Example
DROP DATABASE Mount;
Delete Database
Show Database
“ The Show command will print a list of all the
databases “
Syntax:
SHOW DATABASES;
Example
SHOW DATABASES;
THANK
YOU

Create Database

  • 1.
  • 2.
    Database We can performthree types task for Database 1. Create Database 2. Open Database 3. Delete Database A database is an organized collection of structured information, or data, typically stored electronically in a computer system. A database is usually controlled by a database management system (DBMS). Data within the most common types of databases in operation today is typically modeled in rows and columns in a series of tables to make processing and data querying efficient. The data can then be easily accessed, managed, modified, updated, controlled, and organized. Most databases use structured query language (SQL) for writing and querying data.
  • 3.
    Create Database “The CREATEDATABASE statement is used to create a new SQL database.” Syntax: CREATE DATABASE databasename; Example CREATE DATABASE Mount;
  • 4.
    Open Database “The “USE “ statement is used to Open or Replace database in MySql.” Syntax: USE databasename; Example USE Mount;
  • 5.
    Delete Database “The DROPDATABASE statement is used to drop an existing SQL database.” Syntax: DROP DATABASE databasename; Example DROP DATABASE Mount;
  • 6.
  • 7.
    Show Database “ TheShow command will print a list of all the databases “ Syntax: SHOW DATABASES; Example SHOW DATABASES;
  • 8.