SQL Create Database

In this chapter you will learn:
About create database
Syntax of create database
Example of create database

About create database

The SQL statement create database is used to create the user defined database. SQL server provides the facility to create your own database so you can use this command.

Syntax of create database

create database database_name

Example of create database

create database university

Guide:-

If you will write the given statement in SQL Server and execute/run then it will give a message that "command completed successfully". Screen shot is given below for your better guide-

create database output
SUMMARY

In this chapter, you have learned about creating a database with an example so now you can create your own database to store the records. In the next chapter you will learn about rename database.

 

Share your thought