Skip to content

W3schools

Subscribe Youtube For Video Tutorials
  • Academics
    • Physics
    • Chemistry
    • Math
    • Biology
    • English
    • Hindi
  • Tutorials
    • Quartz scheduler
    • Log4j
    • JUnit
    • Java Mail
    • Java Generics
    • JAXB
    • Jsoup
    • JSON
    • XML Parser
    • Data structure
  • Java
    • Java
    • Collection framework
    • Java date time api
    • Java regex
    • Design patterns
  • Android
  • Servlet
    • JSP
  • Spring
    • Spring
    • Spring AOP
    • Spring DI
    • Spring MVC
    • Spring spel
    • Spring boot
    • Spring security
  • Hibernate
  • WS
    • Stories
  • Python
  • Web
    • Ajax
    • HTML
    • CSS
    • Javascript
    • jQuery
      • jQuery UI
    • PHP
    • TypeScript
    • ReactJS
    • Backbone.js
    • Bootstrap
      • Bootstrap 4
    • XML
      • XML DOM
      • XPath
      • XQuery
      • XSD
      • XSLT
  • Angular
    • AngularJS
    • Angular 7 Tutorial
    • Angular 8 Tutorial
  • DB
    • SQL
    • SQLite
    • MongoDB
    • MySQL
    • Oracle
    • PL/SQL
    • PostgreSQL
    • PouchDB
    • DBMS
  • C
  • More
    • Q&A
    • Quiz
    • Ant
    • CPP
    • JDBC
    • JPA
    • JSF
    • JAR
    • Maven
    • WAR
    • WordPress

SQL CREATE Database

by

The SQL CREATE DATABASE statement is used to create a new database.

Syntax: CREATE DATABASE databaseName;
Note: Database name should be unique within the RDBMS.

Example:

CREATE DATABASE w3schools_db;
 
Next Topic: SQL SHOW Database List with example.
Previous Topic: SQL operators.

 

Categories SQL
SQL operators
SQL SHOW Database List
SQL Tutorial
  • SQL Syntax
  • SQL data type
  • SQL operators
  • SQL CREATE Database
  • SQL SHOW Database List
  • SQL SELECT Database
  • SQL DROP Database
  • SQL CREATE Table
  • SQL ALTER Table
  • SQL COPY Table
  • SQL RENAME Table
  • SQL DROP Table
  • SQL DELETE from table
  • SQL TRUNCATE Table
  • SQL CONSTRAINTS
  • SQL PRIMARY KEY Constraint
  • SQL FOREIGN KEY
  • SQL NOT NULL Constraint
  • SQL UNIQUE Constraint
  • SQL INSERT statement
  • SQL INDEX Constraint
  • SQL UPDATE statement
  • SQL SELECT
  • SQL UNIQUE keyword
  • SQL DISTINCT keyword
  • SQL SELECT TOP
  • SQL SELECT IN Operator
  • SQL NOT IN Operator
  • SQL BETWEEN Operator
  • SQL NOT BETWEEN Operator
  • SQL ALIAS Statement
  • SQL WHERE Clause
  • SQL AND Clause
  • SQL OR Clause
  • SQL UNION Operator
  • SQL LIKE operator
  • SQL ORDER BY Clause
  • SQL GROUP BY clause
  • SQL HAVING clause
  • SQL JOIN clause
  • SQL INNER JOIN
  • SQL LEFT OUTER JOIN
  • SQL RIGHT OUTER JOIN
  • SQL FULL OUTER JOIN
  • SQL SELF JOIN
  • SQL CARTESIAN JOIN
  • SQL Functions

The maximum number of views of this element is reached.
Please contact the webmaster to enable unlimited views.

The maximum number of views of this element is reached.
Please contact the webmaster to enable unlimited views.

The maximum number of views of this element is reached.
Please contact the webmaster to enable unlimited views.

© 2025 W3schools • Built with GeneratePress