To create a SQL database with any name, we can use a ' CREATE DATABASE ' statement.
The basic syntax of CREATE DATABASE statement is given below –
CREATE DATABASE DatabaseName;
If we want to create a database for employees, where we can store all the detail of employees like employee's names, locations, jobs, etc.
Then use the following syntax-
CREATE DATABASE employees;
You can try all examples in MySQL workbench.
Click here to install MySQL workbench.
It will create a database of employees.
If the output shows a green mark then it is executed successfully.
If the database is still not showing click on refresh, marked in an image.
Best learning portal that provides you great learning experience of various technologies with modern compilation tools and technique
Don't hesitate to give us a call or send us a contact form message