theitroad
  • Home
  • Solution
theitroad>Tutorial SQL>SQL Create Database
tutorial
  • SQL Tutorial
  • SQL
  • SQL Functions >
  • SQL Aggregate Functions
  • SQL String Functions
  • SQL Date Functions
  • SQL Server Date Functions
  • Introduction to SQL
  • SQL SELECT and SELECT WHERE
  • SQL AND, OR and NOT
  • SQL SELECT DISTINCT
  • SQL SELECT AS
  • SQL LIMIT, TOP and FETCH FIRST
  • SQL IN Operator
  • SQL BETWEEN Operator
  • SQL IS NULL and NOT NULL
  • SQL MIN() and MAX()
  • SQL COUNT()
  • SQL SUM() and AVG()
  • SQL ORDER BY
  • SQL GROUP BY
  • SQL LIKE
  • SQL Wildcards
  • SQL UNION
  • SQL Subquery
  • SQL ANY and ALL
  • SQL CASE
  • SQL HAVING
  • SQL EXISTS
  • SQL JOINS
  • SQL INNER JOIN
  • SQL LEFT JOIN
  • SQL RIGHT JOIN
  • SQL FULL OUTER JOIN
  • SQL Create Database
  • SQL Create Table
  • SQL Drop Database
  • SQL Drop Table
  • SQL Alter Table
  • SQL Backup Database
  • SQL Insert Into
  • SQL Update
  • SQL Select Into
  • SQL Select Into Insert
  • SQL Delete and Truncate Rows
  • SQL Constraints
  • SQL Not Null Constraint
  • SQL Unique Constraints
  • SQL Primary Key
  • SQL Foreign Key
  • SQL Check
  • SQL Default
  • SQL Create Index
  • SQL Data Types
  • SQL Date and Time
  • SQL Operators
  • SQL Comments
  • SQL Views
  • SQL Stored Procedures
  • SQL Injection

SQL Create Database

To create a new database in SQL, you can use the following syntax:

refe‮r‬ to:theitroad.com
CREATE DATABASE database_name;

Replace database_name with the name you want to give your new database. Here is an example:

CREATE DATABASE mydatabase;

This will create a new database named mydatabase. Keep in mind that the user executing the SQL statement needs to have the necessary permissions to create a new database.

Prev
SQL FULL OUTER JOIN
Next
SQL Create Table
theitroad

Feedback
  • Sitemap
About
  • About US
  • Privary
Advertise
    © 2020
    theitroad