☞ Following are the topics to be covered :
1. Creating a Database 2. Opening a Database 3. Viewing a Database 4. Removing a Database
☞ To create a database in RDBMS, we use CREATE DATABASE command.
Syntax :☞ Suppose we want to create a database named school
Example :☞ To verify that a database is created in RDBMS, we use SHOW DATABASES command.
Syntax :☞ To view all the databases.
Example :Database |
---|
school |
☞ Once a database has been created, we need to open a database in RDBMS, we use USE command.
Syntax :☞ Suppose we want to use the database named school.
Example :☞ To remove/delete a database along with all its tables in RDBMS, we use DROP DATABASE command.
Syntax :☞ Suppose we want to remove the database named school.
Example :